We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c761b18 commit 3b9c9ebCopy full SHA for 3b9c9eb
sec_group.tf
@@ -1,5 +1,7 @@
1
+resource "random_uuid" "uuid" { }
2
+
3
resource "aws_security_group" "db" {
- name = "allow_all"
4
+ name = "allow_all-${var.service_name}-${random_uuid.uuid.result}"
5
description = "Allow all inbound traffic"
6
7
ingress {
@@ -15,4 +17,8 @@ resource "aws_security_group" "db" {
15
17
protocol = "-1"
16
18
cidr_blocks = ["0.0.0.0/0"]
19
}
-}
20
+}
21
22
+output "db_sec_group" {
23
+ value = "allow_all-${var.service_name}-${random_uuid.uuid.result}"
24
0 commit comments