Skip to content

Commit beb1b50

Browse files
committed
moving from list of any to list of strings
1 parent d8a0137 commit beb1b50

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

security.group-rules.tf

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,23 @@
3232

3333
variable rules {
3434

35-
type = map( string, list(any) )
35+
type = map( string, list( string ) )
3636

37+
default = {
38+
"https" = [ "443", "443", "tcp", "http secured" ]
39+
"http" = [ "80", "80", "tcp", "http plaintext" ]
40+
"all-traffic" = [ "-1", "-1", "-1", "All protocols" ]
41+
"ecs" = [ "32768", "61000", "tcp", "cluster comms" ]
42+
"docker" = [ "5000", "5000", "tcp", "docker registry" ]
43+
"java" = [ "8080", "8080", "tcp", "java port" ]
44+
"jenkins" = [ "8080", "8080", "tcp", "jenkins ci" ]
45+
"sonar" = [ "9000", "9000", "tcp", "sonarqube metrics" ]
46+
"postgres" = [ "5432", "5432", "tcp", "postgresql db" ]
47+
}
48+
}
49+
50+
51+
/*
3752
default = {
3853
"https" = [ 443, 443, "tcp", "http secured" ]
3954
"http" = [ 80, 80, "tcp", "http plaintext" ]
@@ -45,7 +60,7 @@ variable rules {
4560
"sonar" = [ 9000, 9000, "tcp", "sonarqube metrics" ]
4661
"postgres" = [ 5432, 5432, "tcp", "postgresql db" ]
4762
}
48-
}
63+
*/
4964

5065

5166
/*

0 commit comments

Comments
 (0)