just minor terraform updates.

This commit is contained in:
2022-07-09 07:50:47 -07:00
parent 8316f35072
commit 892674343d
2 changed files with 20 additions and 2 deletions

View File

@@ -47,7 +47,6 @@ resource "aws_ecs_service" "integreat_app" {
type = "ECS"
}
scheduling_strategy = "REPLICA"
launch_type = "FARGATE"
platform_version = "LATEST"
network_configuration {
@@ -67,6 +66,25 @@ resource "aws_ecs_service" "integreat_app" {
registry_arn = aws_service_discovery_service.service.arn
}
capacity_provider_strategy {
base = 0
capacity_provider = "FARGATE_SPOT"
weight = 5
}
capacity_provider_strategy {
base = 1
capacity_provider = "FARGATE"
weight = 1
}
deployment_circuit_breaker {
enable = false
rollback = false
}
wait_for_steady_state = true
timeouts {}
lifecycle {
ignore_changes = [task_definition]

View File

@@ -9,5 +9,5 @@ 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
desired_count=2
background_desired_count=1