Skip to content

Commit

Permalink
fixes tableau port delimiter: ":" vs "-" (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Steers committed Jul 14, 2020
1 parent e5adcfd commit 12d423b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions catalog/aws/tableau-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ locals {
"Tableau License Verification Service" = "27000:27009"
"Tableau dynamic process mapping" = "8000:9000"
}
# Allow cluster to communicate with itself on all ports.
# At minimum, ports 8000:9000 are required.
cluster_ports = merge(local.tableau_app_ports, local.tableau_admin_ports)
}
Expand Down
8 changes: 4 additions & 4 deletions components/aws/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ resource "aws_security_group" "ecs_cluster_traffic" {
description = egress.key
self = true
protocol = "tcp"
from_port = split("-", egress.value)[0]
to_port = reverse(split("-", egress.value))[0]
from_port = split(":", egress.value)[0]
to_port = reverse(split(":", egress.value))[0]
}
}
dynamic "ingress" {
Expand All @@ -133,8 +133,8 @@ resource "aws_security_group" "ecs_cluster_traffic" {
description = ingress.key
self = true
protocol = "tcp"
from_port = split("-", ingress.value)[0]
to_port = reverse(split("-", ingress.value))[0]
from_port = split(":", ingress.value)[0]
to_port = reverse(split(":", ingress.value))[0]
}
}
}
Expand Down

0 comments on commit 12d423b

Please sign in to comment.