A regional grouping of one or more container instances on which you can run tasks and services.
import { Cluster } from 'aws-cdk-lib/aws-ecs';Or use the module namespace:
import * as ecs from 'aws-cdk-lib/aws-ecs';
// ecs.ClusterConfiguration passed to the constructor as ClusterProps.
capacityOptionalAddCapacityOptionsThe ec2 capacity to add to the cluster.
Default: - no EC2 capacity will be added, you can use `addCapacity` to add capacity later.
clusterNameOptionalstringThe name for the cluster.
Default: CloudFormation-generated name
containerInsightsOptionalDeprecatedbooleanIf true CloudWatch Container Insights will be enabled for the cluster.
Default: - Container Insights will be disabled for this cluster.
Deprecated: See {@link containerInsightsV2 }
containerInsightsV2OptionalContainerInsightsThe CloudWatch Container Insights configuration for the cluster.
Default: {@link ContainerInsights.DISABLED } This may be overridden by ECS account level settings.
defaultCloudMapNamespaceOptionalCloudMapNamespaceOptionsThe service discovery namespace created in this cluster.
Default: - no service discovery namespace created, you can use `addDefaultCloudMapNamespace` to add a
default service discovery namespace later.
enableFargateCapacityProvidersOptionalbooleanWhether to enable Fargate Capacity Providers.
Default: false
executeCommandConfigurationOptionalExecuteCommandConfigurationThe execute command configuration for the cluster.
Default: - no configuration will be provided.
managedStorageConfigurationOptionalManagedStorageConfigurationEncryption configuration for ECS Managed storage.
Default: - no encryption will be applied.
vpcOptionalIVpcThe VPC where your ECS instances will be running or your ENIs will be deployed.
Default: - creates a new VPC with two AZs
Everything you need to know about Amazon ECS on one page. HD quality, print-friendly.
Download Free Infographicaws-ecs