Skip to content

Commit 3b9c9eb

Browse files
author
David Arnold
authored
Update sec_group.tf
1 parent c761b18 commit 3b9c9eb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sec_group.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
resource "random_uuid" "uuid" { }
2+
13
resource "aws_security_group" "db" {
2-
name = "allow_all"
4+
name = "allow_all-${var.service_name}-${random_uuid.uuid.result}"
35
description = "Allow all inbound traffic"
46

57
ingress {
@@ -15,4 +17,8 @@ resource "aws_security_group" "db" {
1517
protocol = "-1"
1618
cidr_blocks = ["0.0.0.0/0"]
1719
}
18-
}
20+
}
21+
22+
output "db_sec_group" {
23+
value = "allow_all-${var.service_name}-${random_uuid.uuid.result}"
24+
}

0 commit comments

Comments
 (0)