diff --git a/providers.tf b/providers.tf index 4d26a6c..88dec2e 100644 --- a/providers.tf +++ b/providers.tf @@ -6,9 +6,7 @@ provider "aws" { region = var.ct_home_region # The default profile or environment variables should authenticate to the Control Tower Management Account as Administrator default_tags { - tags = { - managed_by = "AFT" - } + tags = var.default_tags } } @@ -20,9 +18,7 @@ provider "aws" { session_name = local.aft_session_name } default_tags { - tags = { - managed_by = "AFT" - } + tags = var.default_tags } } provider "aws" { @@ -33,9 +29,7 @@ provider "aws" { session_name = local.aft_session_name } default_tags { - tags = { - managed_by = "AFT" - } + tags = var.default_tags } } provider "aws" { @@ -46,9 +40,7 @@ provider "aws" { session_name = local.aft_session_name } default_tags { - tags = { - managed_by = "AFT" - } + tags = var.default_tags } } provider "aws" { @@ -59,8 +51,6 @@ provider "aws" { session_name = local.aft_session_name } default_tags { - tags = { - managed_by = "AFT" - } + tags = var.default_tags } } diff --git a/variables.tf b/variables.tf index eabf36d..5f2e260 100644 --- a/variables.tf +++ b/variables.tf @@ -149,6 +149,14 @@ variable "global_codebuild_timeout" { } } +variable "default_tags" { + type = map(string) + description = "Tags to apply to all supported resources" + default = { + managed_by = "AFT" + } +} + ######################################### # AFT Feature Flags #########################################