Skip to content

Commit

Permalink
feat(env): associate FARGATE and FARGATE_SPOT cap providers with clus…
Browse files Browse the repository at this point in the history
…ter (#1044)

The FARGATE and FARGATE_SPOT capacity providers are already
created and available to all accounts in Regions supported by AWS
Fargate. With this change we associate these cap providers with the
cluster, this way we can start running tasks on FARGATE_SPOT.

_By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
  • Loading branch information
efekarakus authored Jun 22, 2020
1 parent 05c1571 commit 0c20b23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/environment/cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ Resources:

Cluster:
Type: AWS::ECS::Cluster
Properties:
CapacityProviders: ['FARGATE', 'FARGATE_SPOT']

PublicLoadBalancerSecurityGroup:
Condition: CreatePublicLoadBalancer
Expand Down

0 comments on commit 0c20b23

Please sign in to comment.