Commit ed85a2f5 authored by Jordi Clariana's avatar Jordi Clariana Committed by Anton Babenko

Evaluate var.create variable to set count to 1 or 0 (#62)

In order to avoid https://github.com/hashicorp/terraform/issues/18195
parent e130e30e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Security group # Security group
################# #################
resource "aws_security_group" "this" { resource "aws_security_group" "this" {
count = "${var.create}" count = "${var.create ? 1 : 0}"
name = "${var.name}" name = "${var.name}"
description = "${var.description}" description = "${var.description}"
......
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