Skip to content

Commit 86ff682

Browse files
committed
use map instead of set
1 parent f0199c4 commit 86ff682

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

infra/app-flask/service/bda.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ module "bda_test" {
4040
tags = [{ key = "example_tag_key", value = "example_tag_value" }]
4141
}
4242
}
43-
name_prefix = "bda_module_test"
44-
bucket_policy_arns = toset([module.bda_input_bucket.access_policy_arn, module.bda_output_bucket.access_policy_arn])
43+
name_prefix = "bda_module_test"
44+
bucket_policy_arns = {
45+
input_bucket = module.bda_input_bucket.access_policy_arn,
46+
output_bucket = module.bda_output_bucket.access_policy_arn
47+
}
4548
}

infra/modules/bedrock-data-automation/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variable "name_prefix" {
55

66
variable "bucket_policy_arns" {
77
description = "The set of policy ARNs for the input and output buckets to attach to the BDA role."
8-
type = set(string)
8+
type = map(string)
99
}
1010

1111
variable "bda_project_description" {

0 commit comments

Comments
 (0)