diff --git a/infra/alpha.tf b/infra/alpha.tf index 7cf0a8d..bfa3120 100644 --- a/infra/alpha.tf +++ b/infra/alpha.tf @@ -5,7 +5,7 @@ # Alpha cluster definition ########################### resource "aws_ecs_cluster" "alpha" { - name = "${var.athens_prefix}-athens-alpha" + name = "${var.athens_prefix}-alpha-cluster" configuration { execute_command_configuration { logging = "OVERRIDE" diff --git a/infra/input-vars.tf b/infra/input-vars.tf index 7d9030c..e9dc738 100644 --- a/infra/input-vars.tf +++ b/infra/input-vars.tf @@ -139,3 +139,9 @@ variable "shockrah_xyz_s3_server" { sensitive = true } +variable "shockrah_xyz_nginx_port" { + description = "Port for shockrah.xyz" + type = number + default = 80 +} + diff --git a/infra/load-balancer.tf b/infra/load-balancer.tf index 761bae2..2179f74 100644 --- a/infra/load-balancer.tf +++ b/infra/load-balancer.tf @@ -22,7 +22,7 @@ resource "aws_lb" "alpha" { ##################################################################### resource "aws_lb_target_group" "shockrah_xyz" { name = "${var.athens_prefix}-shockrah-xyz" - port = 80 + port = var.shockrah_xyz_nginx_port protocol = "HTTP" target_type = "ip" vpc_id = aws_vpc.athens_vpc.id