Skip to content

Commit 243dcd4

Browse files
authored
Allow users to set component names in remote state (#51)
* Update remote-state.tf * Update variables.tf
1 parent 94e47a5 commit 243dcd4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/remote-state.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module "account_map" {
22
source = "cloudposse/stack-config/yaml//modules/remote-state"
33
version = "1.8.0"
44

5-
component = "account-map"
5+
component = var.account_map_component_name
66
environment = var.account_map_environment_name
77
stage = var.account_map_stage_name
88
tenant = var.account_map_tenant_name

src/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,9 @@ variable "iam_policy_statements" {
389389
description = "Map of IAM policy statements to use in the bucket policy."
390390
default = {}
391391
}
392+
393+
variable "account_map_component_name" {
394+
type = string
395+
description = "The name of the account-map component"
396+
default = "account-map"
397+
}

0 commit comments

Comments
 (0)