Commit 960189ea authored by Anton Babenko's avatar Anton Babenko

Added lifecycle create_before_destroy on aws_security_group (fixed #40)

parent d160ddb1
...@@ -9,6 +9,10 @@ resource "aws_security_group" "this" { ...@@ -9,6 +9,10 @@ resource "aws_security_group" "this" {
vpc_id = "${var.vpc_id}" vpc_id = "${var.vpc_id}"
tags = "${merge(var.tags, map("Name", format("%s", var.name)))}" tags = "${merge(var.tags, map("Name", format("%s", var.name)))}"
lifecycle {
create_before_destroy = true
}
} }
################################### ###################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment