|
@@ -0,0 +1,23 @@
|
|
|
+locals {
|
|
|
+ environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
|
|
|
+ partition_vars = read_terragrunt_config(find_in_parent_folders("partition.hcl"))
|
|
|
+ region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
|
|
|
+ account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
|
|
|
+ global_vars = read_terragrunt_config(find_in_parent_folders("globals.hcl"))
|
|
|
+}
|
|
|
+
|
|
|
+terraform {
|
|
|
+ # Double slash is intentional and required to show root of modules
|
|
|
+ source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/kms/shared_ami_key?ref=v0.2.2"
|
|
|
+}
|
|
|
+
|
|
|
+include {
|
|
|
+ path = find_in_parent_folders()
|
|
|
+}
|
|
|
+
|
|
|
+inputs = {
|
|
|
+ tags = {
|
|
|
+ Purpose = "Sharing the AMI amongst accounts"
|
|
|
+ Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
|
|
|
+ }
|
|
|
+}
|