File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ TEMPLATE
311
311
# stackset instance to deploy resources for agentless scanning, in all regions of given account
312
312
resource "aws_cloudformation_stack_set_instance" "primary_acc_stackset_instance" {
313
313
for_each = local. region_set
314
- region = each. key
314
+ stack_set_instance_region = each. key
315
315
316
316
stack_set_name = aws_cloudformation_stack_set. primary_acc_stackset . name
317
317
operation_preferences {
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ resource "aws_cloudformation_stack_set_instance" "ou_stackset_instance" {
188
188
" ${pair[0]}-${pair[1]}" => pair
189
189
} : {}
190
190
191
- region = each. value [0 ]
191
+ stack_set_instance_region = each. value [0 ]
192
192
stack_set_name = aws_cloudformation_stack_set. ou_resources_stackset [0 ]. name
193
193
deployment_targets {
194
194
organizational_unit_ids = [each . value [1 ]]
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ TEMPLATE
106
106
resource "aws_cloudformation_stack_set_instance" "stackset_instance" {
107
107
for_each = var. is_organizational ? toset (local. deployment_targets_org_units ) : []
108
108
109
- region = var. region == " " ? null : var. region
109
+ stack_set_instance_region = var. region == " " ? null : var. region
110
110
stack_set_name = aws_cloudformation_stack_set. stackset [0 ]. name
111
111
deployment_targets {
112
112
organizational_unit_ids = [each . value ]
Original file line number Diff line number Diff line change @@ -278,8 +278,8 @@ resource "aws_cloudformation_stack_set_instance" "cloudlogs_s3_access_bucket" {
278
278
account_filter_type = " INTERSECTION"
279
279
accounts = [local . bucket_account_id ]
280
280
}
281
-
282
- region = data. aws_region . current . name
281
+
282
+ stack_set_instance_region = data. aws_region . current . name
283
283
284
284
timeouts {
285
285
create = var. timeout
@@ -299,8 +299,8 @@ resource "aws_cloudformation_stack_set_instance" "cloudlogs_s3_access_topic" {
299
299
account_filter_type = " INTERSECTION"
300
300
accounts = [local . topic_account_id ]
301
301
}
302
-
303
- region = local. topic_region
302
+
303
+ stack_set_instance_region = local. topic_region
304
304
305
305
timeouts {
306
306
create = var. timeout
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ resource "aws_cloudformation_stack_set" "eb_rule_and_api_dest_stackset" {
252
252
253
253
resource "aws_cloudformation_stack_set_instance" "eb_rule_and_api_dest_stackset_instance" {
254
254
for_each = local. region_set
255
- region = each. key
255
+ stack_set_instance_region = each. key
256
256
stack_set_name = aws_cloudformation_stack_set. eb_rule_and_api_dest_stackset . name
257
257
258
258
operation_preferences {
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ resource "aws_cloudformation_stack_set_instance" "eb_rule_api_dest_instance" {
70
70
" ${pair[0]}-${pair[1]}" => pair
71
71
} : {}
72
72
73
- region = each. value [0 ]
73
+ stack_set_instance_region = each. value [0 ]
74
74
stack_set_name = aws_cloudformation_stack_set. eb_rule_api_dest_stackset [0 ]. name
75
75
deployment_targets {
76
76
organizational_unit_ids = [each . value [1 ]]
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ TEMPLATE
56
56
resource "aws_cloudformation_stack_set_instance" "stackset_instance" {
57
57
for_each = var. is_organizational ? toset (local. deployment_targets_org_units ) : []
58
58
59
- region = var. region == " " ? null : var. region
59
+ stack_set_instance_region = var. region == " " ? null : var. region
60
60
stack_set_name = aws_cloudformation_stack_set. stackset [0 ]. name
61
61
deployment_targets {
62
62
organizational_unit_ids = [each . value ]
You can’t perform that action at this time.
0 commit comments