Skip to content

Commit

Permalink
Add create_before_destroy lifecycle to sg (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode authored Feb 25, 2021
1 parent 25dc252 commit a55f22c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ resource "aws_security_group" "ecs_service" {
name = module.service_label.id
description = "Allow ALL egress from ECS service"
tags = module.service_label.tags

lifecycle {
create_before_destroy = true
}
}

resource "aws_security_group_rule" "allow_all_egress" {
Expand Down

0 comments on commit a55f22c

Please sign in to comment.