Bläddra i källkod

Added specific TF Provider to Sensu

Instead of relying on the overwrite 'catch-all' in the parent 'terragrunt.hcl', the Providers are added to the actual module
Jeremy Cooper [AFS MBP] 3 år sedan
förälder
incheckning
0edee11cc0
1 ändrade filer med 29 tillägg och 1 borttagningar
  1. 29 1
      test/aws-us-gov/mdr-test-c2/096-sensu-configuration/terragrunt.hcl

+ 29 - 1
test/aws-us-gov/mdr-test-c2/096-sensu-configuration/terragrunt.hcl

@@ -13,7 +13,7 @@ locals {
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 terraform {
   # Double slash is intentional and required to show root of modules
-  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/sensu-configuration?ref=v3.6.4"
+  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/sensu-configuration?ref=v4.1.4"
 }
 
 dependency "vpc-system-services" {
@@ -24,6 +24,34 @@ dependency "instance-sensu" {
   config_path = "../095-instance-sensu"
 }
 
+#Github specific provider
+generate "required_providers" {
+  path      = "required_provider.tf"
+  if_exists = "overwrite_terragrunt"
+  contents  = <<EOF
+terraform {
+  required_providers {
+    aws = {
+      source = "hashicorp/aws"
+      version = "= 4.4.0" # 2022-03-08: upgrade from 3.63.0; 2021-09-21: upgrade from 3.37.0
+    }
+    vault = {
+      source = "hashicorp/vault"
+      version = "= 3.4.0" # 2022-04-06 upgrade from 2.19.1; 2021-04-29: upgrade from 2.18.0
+    }
+    sensu = {
+      source = "jtopjian/sensu"
+      version = "= 0.12.1" # 2022-04-06: upgrade from 0.10.5
+    }
+    github = {
+      source = "integrations/github"
+      version = "~> 4.0" # 2022-04-06: upgrade from 4.2.0
+    }
+  }
+}
+EOF
+}
+
 #Sensu specific provider
 generate "sensu-provider" {
   path      = "sensu-provider.tf"