CDKTF construct library for Amazon ECS
Project description
cdktf-aws-ecs
CDKTF construct library for Amazon ECS.
Usage
The following sample creates:
- A new VPC
- Amazon ECS cluster
- Autoscaling Group capacity provider
- 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.75.tar.gz
(76.1 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.75.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc11239d8515d5acc754150faf51579e3ea4e1038229c5f40446751808521e2c |
|
MD5 | 206f417c43d6de8037c715a912171c6a |
|
BLAKE2b-256 | d1415c6099ea10db2bf2ec8d7b02f9cfd047f00674458c1ce25c8f5d7f44c077 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.75-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6503bbfda09db3493669eb047d0357a4dd7e82772f4bcf915612701ad0e33502 |
|
MD5 | 699bad60db4ede01e30a7ccc6efb7527 |
|
BLAKE2b-256 | fdaa1b82655c1b10c1676c3f64a53b4b4ec8ce9c95342544aed8ff67fa8974b1 |