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 7, 2024
1 parent 37651ee commit 3cc3dd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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

0 comments on commit 3cc3dd4

Please sign in to comment.