Skip to content

Commit bf4c9c7

Browse files
committed
Typo and tags fix
1 parent 41dda56 commit bf4c9c7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

operations/deployment/terraform/modules/02_networking.tf

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ resource "aws_security_group" "ec2_security_group" {
7575
}
7676

7777
data "aws_security_group" "ec2_security_group" {
78-
cout = var.create_vpc == "true" ? 1 : 0
78+
count = var.create_vpc == "true" ? 1 : 0
7979
id = aws_security_group.ec2_security_group.id
8080
}
8181

8282
resource "aws_security_group_rule" "ingress_http" {
83-
name = "Allow HTTP traffic"
83+
tags = {
84+
name = "Allow HTTP traffic"
85+
}
8486
type = "ingress"
8587
description = "${var.aws_resource_identifier} - HTTP"
8688
from_port = 80
@@ -91,7 +93,9 @@ resource "aws_security_group_rule" "ingress_http" {
9193
}
9294

9395
resource "aws_security_group_rule" "ingress_https" {
94-
name = "Allow HTTPS traffic"
96+
tags = {
97+
name = "Allow HTTPS traffic"
98+
}
9599
type = "ingress"
96100
description = "${var.aws_resource_identifier} - HTTPS"
97101
from_port = 443
@@ -102,7 +106,9 @@ resource "aws_security_group_rule" "ingress_https" {
102106
}
103107

104108
resource "aws_security_group_rule" "ingress_ssh" {
105-
name = "Allow SSH traffic"
109+
tags = {
110+
name = "Allow SSH traffic"
111+
}
106112
type = "ingress"
107113
description = "SSH"
108114
from_port = 22

0 commit comments

Comments
 (0)