From ed68f0bcb457358258aef8f695a448ff5bf827e3 Mon Sep 17 00:00:00 2001 From: Fabio Cicerchia Date: Fri, 1 Sep 2023 21:49:06 +0200 Subject: [PATCH 1/2] switch ecs to use fargate_spot --- sys/cloudformation/stack.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/cloudformation/stack.yaml b/sys/cloudformation/stack.yaml index b69e8ed9..3831d7fc 100644 --- a/sys/cloudformation/stack.yaml +++ b/sys/cloudformation/stack.yaml @@ -309,6 +309,12 @@ Resources: CapacityProviders: - FARGATE - FARGATE_SPOT + DefaultCapacityProviderStrategy: + - CapacityProvider: FARGATE_SPOT + Weight: 2 + - Base: 1 + CapacityProvider: FARGATE + Weight: 1 ClusterSettings: - Name: containerInsights Value: enabled @@ -323,7 +329,6 @@ Resources: Cluster: !Ref ecscluster DesiredCount: 1 HealthCheckGracePeriodSeconds: 15 - LaunchType: FARGATE LoadBalancers: - ContainerName: 'nginx' ContainerPort: 80 From 263c5cc4086f389a7e95735cd0429cac56328970 Mon Sep 17 00:00:00 2001 From: Fabio Cicerchia Date: Sat, 7 Sep 2024 09:21:04 +0200 Subject: [PATCH 2/2] enabled scheduled contributors-update --- sys/cloudformation/stack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cloudformation/stack.yaml b/sys/cloudformation/stack.yaml index 3831d7fc..316a46bb 100644 --- a/sys/cloudformation/stack.yaml +++ b/sys/cloudformation/stack.yaml @@ -510,7 +510,7 @@ Resources: Properties: Name: 'app-contributors-update' ScheduleExpression: 'rate(24 hours)' - State: DISABLED + State: ENABLED Targets: - Id: phpfpm Arn: !GetAtt ecscluster.Arn