terragrunt.hcl 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/shared_ami_key?ref=v5.0.0"
  11. }
  12. dependency "account_standards" {
  13. config_path = "../006-account-standards"
  14. }
  15. include {
  16. path = find_in_parent_folders()
  17. }
  18. inputs = {
  19. tags = {
  20. Purpose = "Sharing the AMI amongst accounts"
  21. Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
  22. }
  23. ami_bucket_name = "cyberrange-shared-amis"
  24. vmimport_extra_keys = [dependency.account_standards.outputs.kms_key_id]
  25. vmimport_extra_buckets = ["arn:aws:s3:::victim-windows10-enterprise-x64"]
  26. }
  27. terraform_version_constraint = "= 1.1.6"
  28. terragrunt_version_constraint = "= 0.36.2"