From 0c20b23325a3515e490accfd232de6d02f06849c Mon Sep 17 00:00:00 2001 From: Efe Karakus Date: Mon, 22 Jun 2020 15:48:00 -0700 Subject: [PATCH] feat(env): associate FARGATE and FARGATE_SPOT cap providers with cluster (#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._ --- templates/environment/cf.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/environment/cf.yml b/templates/environment/cf.yml index ce8acf4da15..86e451613d4 100644 --- a/templates/environment/cf.yml +++ b/templates/environment/cf.yml @@ -160,6 +160,8 @@ Resources: Cluster: Type: AWS::ECS::Cluster + Properties: + CapacityProviders: ['FARGATE', 'FARGATE_SPOT'] PublicLoadBalancerSecurityGroup: Condition: CreatePublicLoadBalancer