File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
operations/deployment/terraform/modules Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,8 @@ data "aws_security_group" "ec2_security_group" {
80
80
}
81
81
82
82
resource "aws_security_group_rule" "ingress_http" {
83
- tags = {
84
- name = " Allow HTTP traffic"
85
- }
86
83
type = " ingress"
87
- description = " ${ var . aws_resource_identifier } - HTTP"
84
+ description = " Allow HTTP"
88
85
from_port = 80
89
86
to_port = 80
90
87
protocol = " tcp"
@@ -93,11 +90,8 @@ resource "aws_security_group_rule" "ingress_http" {
93
90
}
94
91
95
92
resource "aws_security_group_rule" "ingress_https" {
96
- tags = {
97
- name = " Allow HTTPS traffic"
98
- }
99
93
type = " ingress"
100
- description = " ${ var . aws_resource_identifier } - HTTPS"
94
+ description = " Allow HTTPS"
101
95
from_port = 443
102
96
to_port = 443
103
97
protocol = " tcp"
@@ -106,11 +100,8 @@ resource "aws_security_group_rule" "ingress_https" {
106
100
}
107
101
108
102
resource "aws_security_group_rule" "ingress_ssh" {
109
- tags = {
110
- name = " Allow SSH traffic"
111
- }
112
103
type = " ingress"
113
- description = " SSH"
104
+ description = " Allow SSH"
114
105
from_port = 22
115
106
to_port = 22
116
107
protocol = " tcp"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resource "aws_instance" "server" {
5
5
associate_public_ip_address = true
6
6
7
7
subnet_id = var. create_vpc == " true" ? aws_subnet. public . * . id [0 ] : null
8
- vpc_security_group_ids = [aws_security_group . allow_http . id , aws_security_group . allow_https . id , aws_security_group . allow_ssh . id ]
8
+ vpc_security_group_ids = [aws_security_group . ec2_security_group . id ]
9
9
user_data = << EOF
10
10
#!/bin/bash
11
11
echo "symlink for python3 -> python"
You can’t perform that action at this time.
0 commit comments