Skip to content

Commit 7c88d1f

Browse files
committed
Modified locals name
1 parent c6f057f commit 7c88d1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ module "label" {
2929
}
3030

3131
locals {
32-
instance_count = "${var.instance_enabled ? 1 : 0}"
33-
create_security_group = "${var.create_default_security_group ? 1 : 0}"
32+
instance_count = "${var.instance_enabled ? 1 : 0}"
33+
security_group_count = "${var.create_default_security_group ? 1 : 0}"
3434
}
3535

3636
resource "aws_iam_instance_profile" "default" {
@@ -48,7 +48,7 @@ resource "aws_iam_role" "default" {
4848
}
4949

5050
resource "aws_security_group" "default" {
51-
count = "${local.create_security_group}"
51+
count = "${local.security_group_count}"
5252
name = "${module.label.id}"
5353
vpc_id = "${var.vpc_id}"
5454
description = "Instance default security group (only egress access is allowed)"

0 commit comments

Comments
 (0)