terragrunt.hcl 825 B

1234567891011121314151617181920212223
  1. locals {
  2. environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
  3. partition_vars = read_terragrunt_config(find_in_parent_folders("partition.hcl"))
  4. region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
  5. account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
  6. global_vars = read_terragrunt_config(find_in_parent_folders("globals.hcl"))
  7. }
  8. terraform {
  9. # Double slash is intentional and required to show root of modules
  10. source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/shared_ami_key?ref=v0.5.3"
  11. }
  12. include {
  13. path = find_in_parent_folders()
  14. }
  15. inputs = {
  16. tags = {
  17. Purpose = "Sharing the AMI amongst accounts"
  18. Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
  19. }
  20. }