File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
operations/deployment/terraform/modules Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,14 @@ resource "aws_security_group" "ec2_security_group" {
7575}
7676
7777data "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
8282resource "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
9395resource "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
104108resource "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
You can’t perform that action at this time.
0 commit comments