Skip to content

Commit 9f06f47

Browse files
committed
chore: update account id variable usage
1 parent dd5b0a6 commit 9f06f47

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

examples/basic/main.tf

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ module "cost_anomaly_detection" {
8282
}
8383
}
8484
tags = var.tags
85-
accounts_id_to_name = {
86-
"1234567890" = "mgmt"
87-
}
85+
accounts_id_to_name_parameter_arn = "arn:aws:ssm:eu-west-2:0123456778:parameter/myorg/configmaps/accounts_id_to_name_mapping"
8886
identity_center_start_url = null
8987
identity_center_role = null
9088
}

examples/existing_sns/main.tf

+1-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ module "cost_anomaly_detection" {
6464
}
6565
}
6666

67-
accounts_id_to_name = {
68-
"1234567890" = "mgmt"
69-
}
67+
accounts_id_to_name_parameter_arn = "arn:aws:ssm:eu-west-2:0123456778:parameter/myorg/configmaps/accounts_id_to_name_mapping"
7068
identity_center_start_url = null
7169
identity_center_role = null
7270
}

variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ variable "tags" {
6969

7070
variable "accounts_id_to_name_parameter_arn" {
7171
description = "The ARN of your parameter containing the your account ID to name mapping. This ARN will be attached to lambda execution role as a resource, therefore a valid resource must exist. e.g 'arn:aws:ssm:eu-west-2:0123456778:parameter/myorg/configmaps/accounts_id_to_name_mapping' to enable the lambda retrieve values from ssm."
72-
type = map(string)
72+
type = string
7373
default = null
7474
}
7575

0 commit comments

Comments
 (0)