ECS Capacity Provider

An ECS Capacity Provider in AWS defines how Amazon ECS manages the capacity of compute resources for running tasks. It allows you to associate an ECS cluster with either EC2 Auto Scaling groups or Fargate, enabling flexible scaling and placement strategies. Capacity providers help balance workloads, optimize costs, and ensure that tasks have the required infrastructure available.

aws.ecs_capacity_provider

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
auto_scaling_group_providercorejsonThe Auto Scaling group settings for the capacity provider.
capacity_provider_arncorestringThe Amazon Resource Name (ARN) that identifies the capacity provider.
namecorestringThe name of the capacity provider.
statuscorestringThe current status of the capacity provider. Only capacity providers in an ACTIVE state can be used in a cluster. When a capacity provider is successfully deleted, it has an INACTIVE status.
tagscorehstore
update_statuscorestringThe update status of the capacity provider. The following are the possible states that is returned. DELETE_IN_PROGRESS The capacity provider is in the process of being deleted. DELETE_COMPLETE The capacity provider was successfully deleted and has an INACTIVE status. DELETE_FAILED The capacity provider can't be deleted. The update status reason provides further details about why the delete failed.
update_status_reasoncorestringThe update status reason. This provides further details about the update status for the capacity provider.