locals { # If you want to use any of the variables in _this_ file, you have to load them here. # However, they will all be available as inputs to the module loaded in terraform.source # below. 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")) # Extract the variables we need for easy access account_name = local.account_vars.locals.account_name account_id = local.account_vars.locals.aws_account_id aws_region = local.region_vars.locals.aws_region aws_partition = local.partition_vars.locals.aws_partition common_services_account = local.partition_vars.locals.common_services_account legacy_account = local.environment_vars.locals.legacy_account tfstate_region = local.partition_vars.locals.tfstate_region common_profile = local.partition_vars.locals.common_profile } # Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the # 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/codebuild_splunk_apps?ref=v4.0.13" } # --------------------------------------------------------------------------------------------------------------------- # Generate an AWS provider block # Temp fix to backlevel provider because of codebuild issue # # --------------------------------------------------------------------------------------------------------------------- generate "provider" { path = "provider.tf" if_exists = "overwrite_terragrunt" contents = <