Skip to content

Commit eadbfdf

Browse files
unique names for sgs (#25)
1 parent bf21c2f commit eadbfdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "aws_route_table_association" "public" {
6363

6464

6565
resource "aws_security_group" "allow_http" {
66-
name = "allow_http"
66+
name = "${var.aws_resource_identifier_supershort}-http"
6767
description = "Allow HTTP traffic"
6868
vpc_id = var.create_vpc == "true" ? aws_vpc.main[0].id : null
6969
ingress {
@@ -82,7 +82,7 @@ resource "aws_security_group" "allow_http" {
8282
}
8383

8484
resource "aws_security_group" "allow_https" {
85-
name = "allow_https"
85+
name = "${var.aws_resource_identifier_supershort}-https"
8686
description = "Allow HTTPS traffic"
8787
vpc_id = var.create_vpc == "true" ? aws_vpc.main[0].id : null
8888
ingress {
@@ -101,7 +101,7 @@ resource "aws_security_group" "allow_https" {
101101
}
102102

103103
resource "aws_security_group" "allow_ssh" {
104-
name = "allow_ssh"
104+
name = "${var.aws_resource_identifier_supershort}-ssh"
105105
description = "Allow SSH traffic"
106106
vpc_id = var.create_vpc == "true" ? aws_vpc.main[0].id : null
107107
ingress {

0 commit comments

Comments
 (0)