diff --git a/deployment/terraform/244531986313-eu-central-1.tfvars b/deployment/terraform/244531986313-eu-central-1.tfvars index b9c0ab8..4c53e7b 100644 --- a/deployment/terraform/244531986313-eu-central-1.tfvars +++ b/deployment/terraform/244531986313-eu-central-1.tfvars @@ -1,4 +1,4 @@ -env = "staging" +env = "staging" # Allow to replicate app docker images to these accounts ecr_replication_targets = [ diff --git a/deployment/terraform/274425519734-eu-central-1.tfvars b/deployment/terraform/274425519734-eu-central-1.tfvars index 6d3440a..07e1998 100644 --- a/deployment/terraform/274425519734-eu-central-1.tfvars +++ b/deployment/terraform/274425519734-eu-central-1.tfvars @@ -1,4 +1,4 @@ -env = "prod" +env = "prod" # Allow to replicate app docker images from this account ecr_replication_origin = "244531986313" diff --git a/deployment/terraform/deployment.tf b/deployment/terraform/deployment.tf index 1e29e22..878a9c5 100644 --- a/deployment/terraform/deployment.tf +++ b/deployment/terraform/deployment.tf @@ -1,21 +1,21 @@ module "ecs-service" { - source = "s3::https://s3-eu-central-1.amazonaws.com/terraform-modules-9d7e951c290ec5bbe6506e0ddb064808764bc636/terraform-modules.zip//ecs-service/v1" - service_name = var.service_name - TAGGED_IMAGE = var.TAGGED_IMAGE - enable_execute_command = "true" - app_port = var.app_port - cpu_limit = var.cpu_limit - mem_reservation = var.mem_reservation - mem_limit = var.mem_limit - app_env_vars = local.app_env_vars + source = "s3::https://s3-eu-central-1.amazonaws.com/terraform-modules-9d7e951c290ec5bbe6506e0ddb064808764bc636/terraform-modules.zip//ecs-service/v1" + service_name = var.service_name + TAGGED_IMAGE = var.TAGGED_IMAGE + enable_execute_command = "true" + app_port = var.app_port + cpu_limit = var.cpu_limit + mem_reservation = var.mem_reservation + mem_limit = var.mem_limit + app_env_vars = local.app_env_vars ecr_replication_targets = var.ecr_replication_targets - ecr_replication_origin = var.ecr_replication_origin + ecr_replication_origin = var.ecr_replication_origin volumes = [ { - name = "docker_socket" + name = "docker_socket" containerPath = "/var/run/docker.sock" - host_path = "/var/run/docker.sock" + host_path = "/var/run/docker.sock" } ] - tags = module.tags.result + tags = module.tags.result } diff --git a/deployment/terraform/variables.tf b/deployment/terraform/variables.tf index cd1cf08..61fb5a4 100644 --- a/deployment/terraform/variables.tf +++ b/deployment/terraform/variables.tf @@ -1,5 +1,5 @@ variable "service_name" { - type = string + type = string default = "repler" } @@ -8,22 +8,22 @@ variable "env" { } variable "app_port" { - type = number + type = number default = 4657 } variable "cpu_limit" { - type = number + type = number default = 20 } variable "mem_limit" { - type = number + type = number default = 64 } variable "mem_reservation" { - type = number + type = number default = 32 }