Avoiding hard coded values and improving cluster name
This commit is contained in:
parent
203ec7f434
commit
53267daf99
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user