Home > Blockchain >  AWS managed ECS Fargate capacity provider
AWS managed ECS Fargate capacity provider

Time:04-18

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 ?

CodePudding user response:

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
  • Related