Skip to main content

CDKTF construct library for Amazon ECS

Project description

npm version PyPI version release construct hub

cdktf-aws-ecs

CDKTF construct library for Amazon ECS.

Usage

The following sample creates:

  1. A new VPC
  2. Amazon ECS cluster
  3. Autoscaling Group capacity provider
  4. Autoscaling Group with Launch Template
# Example automatically generated from non-compiling source. May contain errors.
from pahud.cdktf_aws_ecs import Cluster

# create the cluster
cluster = Cluster(stack, "EcsCluster")

# create the ASG capacity with capacity provider
cluster.add_asg_capacity("ASGCapacity",
    max_capacity=10,
    min_capacity=0,
    desired_capacity=2
)

Existing VPC subnets

To deploy in any existing VPC, specify the vpcSubnets.

# Example automatically generated from non-compiling source. May contain errors.
cluster.add_asg_capacity("ASGCapacity",
    vpc_subnets=["subnet-111", "subnet-222", "subnet-333"]
)

Bottlerocket support

To create cluster capacity with Bottlerocket machine image:

# Example automatically generated from non-compiling source. May contain errors.
cluster.add_asg_capacity("BRCapacity",
    machine_image=BottleRocketImage(stack)
)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pahud-cdktf-aws-ecs-0.1.92.tar.gz (75.4 kB view hashes)

Uploaded Source

Built Distribution

pahud_cdktf_aws_ecs-0.1.92-py3-none-any.whl (74.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page