'AWS managed ECS Fargate capacity provider
We are planning to create ECS Fargate cluster.
Now we want to use AWS managed capacity provider for ECS cluster.
I am using below template to create cluster and capacity provider for fargate.
Type: AWS::ECS::Cluster
Properties:
ClusterName: dev-cluster
DefaultCapacityProviderStrategy:
- Base: 1
CapacityProvider: FARGATE
Weight: 1
Now in DefaultCapacityProviderStrategy we have below three items
"Base" : Integer,
"CapacityProvider" : String,
"Weight" : Integer
But my concern is we dont want to create any capacity provider so what to provide in CapacityProvider ?
Solution 1:[1]
CapacityProvider
is optional, and you don't have to explicitly specify it. If its not given, FARGATE
provider is by default. You need to only specify CapacityProvider
if you want to add FARGATE_SPOT
to your setup.
Update:
Resources:
ECSCluster:
Type: AWS::ECS::Cluster
Properties:
ClusterName: dev-cluster
CapacityProviders:
- FARGATE
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |