Skip to content

Commit

Permalink
switch ecs to use fargate_spot
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocicerchia committed Sep 2, 2023
1 parent 37651ee commit 3990d93
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sys/cloudformation/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -323,7 +329,6 @@ Resources:
Cluster: !Ref ecscluster
DesiredCount: 1
HealthCheckGracePeriodSeconds: 15
LaunchType: FARGATE
LoadBalancers:
- ContainerName: 'nginx'
ContainerPort: 80
Expand Down Expand Up @@ -505,7 +510,7 @@ Resources:
Properties:
Name: 'app-contributors-update'
ScheduleExpression: 'rate(24 hours)'
State: DISABLED
State: ENABLED
Targets:
- Id: phpfpm
Arn: !GetAtt ecscluster.Arn
Expand Down

0 comments on commit 3990d93

Please sign in to comment.