Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch ecs to use fargate_spot #1072

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
fabiocicerchia marked this conversation as resolved.
Show resolved Hide resolved
Targets:
- Id: phpfpm
Arn: !GetAtt ecscluster.Arn
Expand Down
Loading