AWS Fundamentals Logo
AWS Fundamentals
AWS::ECS::CapacityProvider

ECS CapacityProvider

Resource Type definition for AWS::ECS::CapacityProvider.

Properties

5 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
AutoScalingGroupProvider
AutoScalingGroupProvider
ClusterName
string
Create-only
ManagedInstancesProvider
ManagedInstancesProvider
Name
string
Create-only
Tags
Array<Tag>

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ECS::CapacityProvider

Resources:
  MyResource:
    Type: AWS::ECS::CapacityProvider
    Properties:
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

ecs:DescribeCapacityProviders

create

autoscaling:CreateOrUpdateTagsecs:CreateCapacityProviderecs:DescribeCapacityProvidersecs:TagResourceecs:PutClusterCapacityProvidersiam:CreateServiceLinkedRoleiam:PassRole

update

ecs:UpdateCapacityProviderecs:DescribeCapacityProvidersecs:ListTagsForResourceecs:PutClusterCapacityProvidersecs:TagResourceecs:UntagResourceiam:PassRole

list

ecs:DescribeCapacityProviders

delete

ecs:DescribeCapacityProvidersecs:DeleteCapacityProviderecs:PutClusterCapacityProviders

Get the ECS Cheat Sheet

Everything you need to know about ECS on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceECS
Properties5
Required0
TaggingSupported
Primary IDName

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

AutoScalingGroupProvider/AutoScalingGroupArnManagedInstancesProvider/InstanceLaunchTemplate/FipsEnabledNameClusterName

External Links