Skip to content

Commit

Permalink
Using name_prefix instead of name to allow creation of duplicated wit…
Browse files Browse the repository at this point in the history
…h create_before_destroy (fix #40)
  • Loading branch information
antonbabenko committed Sep 5, 2018
1 parent 960189e commit 5e998c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
resource "aws_security_group" "this" {
count = "${var.create ? 1 : 0}"

name = "${var.name}"
name_prefix = "${var.name}-"
description = "${var.description}"
vpc_id = "${var.vpc_id}"

Expand Down

0 comments on commit 5e998c5

Please sign in to comment.