x-cluster

JSON Schema Definition

Properties

Refer to the AWS CFN reference for ECS Cluster

Override default settings
x-cluster:
  Properties:
    CapacityProviders:
      - FARGATE
      - FARGATE_SPOT
    ClusterName: spotalltheway
    DefaultCapacityProviderStrategy:
      - CapacityProvider: FARGATE_SPOT
        Weight: 4
        Base: 2
      - CapacityProvider: FARGATE
        Weight: 1

Lookup

Allows you to enter the name of an existing ECS Cluster that you want to deploy your services to.

Lookup existing cluster example.
x-cluster:
  Lookup:
    Tags:
      - name: clusterabcd
      - costcentre: lambda

Warning

If the cluster name is not found, by default, a new cluster will be created with the default settings.

Use

This key allows you to set a cluster to use, that you do not wish to lookup, you just know the name you want to use. (Useful for multi-account where you can’t lookup cross-account).