Skip to content

Commit acb9735

Browse files
committed
Add lifecycle into lambda combined policy
1 parent fe16843 commit acb9735

File tree

1 file changed

+3
-0
lines changed
  • infrastructure/modules/lambda

1 file changed

+3
-0
lines changed

infrastructure/modules/lambda/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ data "aws_iam_policy_document" "merged_policy" {
166166
resource "aws_iam_policy" "combined_policies" {
167167
name = "${terraform.workspace}_${var.name}_combined_policy"
168168
policy = data.aws_iam_policy_document.merged_policy.json
169+
lifecycle {
170+
create_before_destroy = true
171+
}
169172
}
170173

171174
resource "aws_iam_role_policy_attachment" "default_policies" {

0 commit comments

Comments
 (0)