Skip to content

Commit f44986a

Browse files
committed
correcting the complex type in terraform 0.12
1 parent b352e2f commit f44986a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

security.group-rules.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@ variable rules {
2828
sonar = list(string)
2929
postgres = list(string)
3030
})
31-
}
32-
3331

34-
locals {
35-
rules = {
32+
default = {
3633
http = [ 80, 80, "tcp", "http plaintext" ]
3734
all-traffic = [ -1, -1, "-1", "All protocols" ]
3835
ecs = [ 32768, 61000, "tcp", "cluster comms" ]
@@ -41,9 +38,11 @@ locals {
4138
jenkins = [ 8080, 8080, "tcp", "jenkins ci" ]
4239
sonar = [ 9000, 9000, "tcp", "sonarqube metrics" ]
4340
postgres = [ 5432, 5432, "tcp", "postgresql db" ]
44-
}
4541
}
4642

43+
}
44+
45+
4746

4847
/*
4948
variable rules {

0 commit comments

Comments
 (0)