Skip to content

Commit

Permalink
fix: SecurityGroup - create_before_destroy (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlop authored Jun 27, 2022
1 parent d90de4f commit ceb91fb
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 @@ -300,6 +300,10 @@ resource "aws_security_group" "this" {
description = coalesce(var.security_group_description, "Control traffic to/from RDS Aurora ${var.name}")

tags = merge(var.tags, var.security_group_tags, { Name = var.name })

lifecycle {
create_before_destroy = true
}
}

# TODO - change to map of ingress rules under one resource at next breaking change
Expand Down

0 comments on commit ceb91fb

Please sign in to comment.