Skip to content

Commit b8185a9

Browse files
committed
Grappling with terraform boolean behaviour.
1 parent 60df8e4 commit b8185a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

security.group-main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
resource aws_security_group new
77
{
8-
count = "${ var.in_use_default == false ? 1 : 0 }"
8+
count = "${ var.in_use_default ? 1 : 0 }"
99

1010
name = "security-group-${ var.in_ecosystem }-${ module.ecosys.out_stamp }-n"
1111
description = "This new security group ${ module.ecosys.out_history_note }"

test-security.group/security.group-test.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module vpc-subnets
1212
{
1313
source = "github.com/devops-ip/terraform-aws-vpc-subnets"
1414
in_vpc_cidr = "10.123.0.0/16"
15-
in_ecosystem = "${local.ecosystem_id}"
15+
in_ecosystem = "${ local.ecosystem_id }"
1616
}
1717

1818
module zero-param-test
@@ -33,8 +33,8 @@ module security-group-test-1
3333
{
3434
source = "github.com/devops-ip/terraform-aws-security-group"
3535
version = "v0.1.0001"
36-
in_vpc_id = "${module.vpc-subnets.out_vpc_id}"
37-
in_ecosystem = "${local.ecosystem_id}-01"
36+
in_vpc_id = "${ module.vpc-subnets.out_vpc_id }"
37+
in_ecosystem = "${ local.ecosystem_id }-01"
3838
}
3939

4040
/*

0 commit comments

Comments
 (0)