small tweaks to prep for staging environment.

This commit is contained in:
Bryce Covert
2021-12-24 08:19:11 -08:00
parent dfc88602a0
commit e7ae9e5df0
7 changed files with 19 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ variable "task_role_arn" {}
variable "execution_role_arn" {}
variable "ecs_cluster" {}
variable "local_namespace" {}
variable "desired_count" {}
variable "http_listener_sg" {
default = "sg-0024906e0e1f78048"
@@ -39,7 +40,7 @@ resource "aws_ecs_service" "integreat_app" {
name = "integreat_app_${var.stage}"
cluster = var.ecs_cluster
task_definition = aws_ecs_task_definition.integreat_app.arn
desired_count = 4
desired_count = var.desired_count
health_check_grace_period_seconds = 600
deployment_controller {
type = "ECS"

View File

@@ -9,3 +9,4 @@ execution_role_arn="arn:aws:iam::679918342773:role/ecsTaskExecutionRole"
ecs_cluster="arn:aws:ecs:us-east-1:679918342773:cluster/default"
# service_registry="arn:aws:servicediscovery:us-east-1:679918342773:service/srv-6auj2wqsh55k2nuj"
local_namespace="ns-gv2z744em7myo2jp"
desired_count=4

View File

@@ -9,3 +9,4 @@ execution_role_arn="arn:aws:iam::679918342773:role/ecsTaskExecutionRole"
ecs_cluster="arn:aws:ecs:us-east-1:679918342773:cluster/default"
# service_registry="arn:aws:servicediscovery:us-east-1:679918342773:service/srv-6auj2wqsh55k2nuj"
local_namespace="ns-gv2z744em7myo2jp"
desired_count=1