Got terraform back up to date.

This commit is contained in:
2021-12-18 17:10:04 -08:00
parent 878ceeaa0b
commit d8322bf498
8 changed files with 294 additions and 81 deletions

View File

@@ -27,7 +27,7 @@ resource "aws_ecs_task_definition" "integreat_background_worker" {
family = "integreat_background-worker_${var.stage}"
container_definitions = file("${var.stage}-background-worker-taskdef.json")
memory = 2048
memory = 4096
cpu = 1024
network_mode = "awsvpc"
requires_compatibilities = ["FARGATE"]
@@ -39,7 +39,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 = 2
desired_count = 4
health_check_grace_period_seconds = 600
deployment_controller {
type = "ECS"
@@ -103,6 +103,7 @@ resource "aws_lb" "integreat_app" {
subnets = var.lb_subnets
ip_address_type = "ipv4"
enable_deletion_protection = true
idle_timeout = 120
}
resource "aws_lb_target_group" "integreat_app" {
@@ -196,7 +197,7 @@ resource "aws_lb_listener_rule" "static" {
"/css/*",
"/finance-font/*",
"/img/*",
"/js/compiled/app.js",
"/js/compiled/*",
"index.html",
]
}