Skip to content

Commit 323380c

Browse files
SSPROD-58177 - fix: update var deprecation (#77)
* SSPROD-58177 - fix: update var deprecation * SSPROD-58177 - fix: update var deprecation
1 parent 9da082e commit 323380c

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

modules/agentless-scanning/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ TEMPLATE
311311
# stackset instance to deploy resources for agentless scanning, in all regions of given account
312312
resource "aws_cloudformation_stack_set_instance" "primary_acc_stackset_instance" {
313313
for_each = local.region_set
314-
region = each.key
314+
stack_set_instance_region = each.key
315315

316316
stack_set_name = aws_cloudformation_stack_set.primary_acc_stackset.name
317317
operation_preferences {

modules/agentless-scanning/organizational.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ resource "aws_cloudformation_stack_set_instance" "ou_stackset_instance" {
188188
"${pair[0]}-${pair[1]}" => pair
189189
} : {}
190190

191-
region = each.value[0]
191+
stack_set_instance_region = each.value[0]
192192
stack_set_name = aws_cloudformation_stack_set.ou_resources_stackset[0].name
193193
deployment_targets {
194194
organizational_unit_ids = [each.value[1]]

modules/config-posture/organizational.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ TEMPLATE
106106
resource "aws_cloudformation_stack_set_instance" "stackset_instance" {
107107
for_each = var.is_organizational ? toset(local.deployment_targets_org_units) : []
108108

109-
region = var.region == "" ? null : var.region
109+
stack_set_instance_region = var.region == "" ? null : var.region
110110
stack_set_name = aws_cloudformation_stack_set.stackset[0].name
111111
deployment_targets {
112112
organizational_unit_ids = [each.value]

modules/integrations/cloud-logs/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ resource "aws_cloudformation_stack_set_instance" "cloudlogs_s3_access_bucket" {
278278
account_filter_type = "INTERSECTION"
279279
accounts = [local.bucket_account_id]
280280
}
281-
282-
region = data.aws_region.current.name
281+
282+
stack_set_instance_region = data.aws_region.current.name
283283

284284
timeouts {
285285
create = var.timeout
@@ -299,8 +299,8 @@ resource "aws_cloudformation_stack_set_instance" "cloudlogs_s3_access_topic" {
299299
account_filter_type = "INTERSECTION"
300300
accounts = [local.topic_account_id]
301301
}
302-
303-
region = local.topic_region
302+
303+
stack_set_instance_region = local.topic_region
304304

305305
timeouts {
306306
create = var.timeout

modules/integrations/event-bridge/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ resource "aws_cloudformation_stack_set" "eb_rule_and_api_dest_stackset" {
252252

253253
resource "aws_cloudformation_stack_set_instance" "eb_rule_and_api_dest_stackset_instance" {
254254
for_each = local.region_set
255-
region = each.key
255+
stack_set_instance_region = each.key
256256
stack_set_name = aws_cloudformation_stack_set.eb_rule_and_api_dest_stackset.name
257257

258258
operation_preferences {

modules/integrations/event-bridge/organizational.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ resource "aws_cloudformation_stack_set_instance" "eb_rule_api_dest_instance" {
7070
"${pair[0]}-${pair[1]}" => pair
7171
} : {}
7272

73-
region = each.value[0]
73+
stack_set_instance_region = each.value[0]
7474
stack_set_name = aws_cloudformation_stack_set.eb_rule_api_dest_stackset[0].name
7575
deployment_targets {
7676
organizational_unit_ids = [each.value[1]]

modules/onboarding/organizational.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ TEMPLATE
5656
resource "aws_cloudformation_stack_set_instance" "stackset_instance" {
5757
for_each = var.is_organizational ? toset(local.deployment_targets_org_units) : []
5858

59-
region = var.region == "" ? null : var.region
59+
stack_set_instance_region = var.region == "" ? null : var.region
6060
stack_set_name = aws_cloudformation_stack_set.stackset[0].name
6161
deployment_targets {
6262
organizational_unit_ids = [each.value]

0 commit comments

Comments
 (0)