Skip to content

Commit d25f9a4

Browse files
camloughAnthony Laiuppacwarren79
authored
chore(cloudformation): merge in changes from public prs (#7)
* chore(cloudformation): update stackset region fixes deprecation warning for region in cloudformation_stack_set_instance by updating to new argument stack_set_instance_region * Ignore changes to administration_role_arn Otherwise there is a perpetual diff --------- Co-authored-by: Anthony Laiuppa <anthonylaiuppa@Mariner.local> Co-authored-by: Chris Warren <chris.warren@jane.app>
1 parent 9f60e04 commit d25f9a4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

main.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ resource "aws_cloudformation_stack_set" "stack_set" {
2121
}
2222
template_body = local.json_template
2323
parameters = { DrataAWSAccountID : var.drata_aws_account_id, RoleSTSExternalID : var.role_sts_externalid }
24+
25+
lifecycle {
26+
ignore_changes = [administration_role_arn]
27+
}
2428
}
2529

2630
# apply the stack set to the entire organization using the root id
2731
resource "aws_cloudformation_stack_set_instance" "instances" {
2832
deployment_targets {
2933
organizational_unit_ids = local.organizational_unit_ids
3034
}
31-
region = var.stackset_region
32-
stack_set_name = aws_cloudformation_stack_set.stack_set.name
35+
stack_set_instance_region = var.stackset_region
36+
stack_set_name = aws_cloudformation_stack_set.stack_set.name
3337
}

0 commit comments

Comments
 (0)