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.84.tar.gz
(75.5 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.84.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59a8c77d49c2325339ac0db45094c948217ce8a451543bb3b13964dc29197db |
|
MD5 | 9fb3ca5805f03d65f7cf043f1189e349 |
|
BLAKE2b-256 | 2311397b92e2e85f8a53fe3fc10c364812a77405d68e9c4c820b2fbbe92261fc |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.84-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6991307a6b59cf604e236b33312387922dd1453401b1e3410ef19f1af6f583f7 |
|
MD5 | 8b6cd1541df85ddd45f474818e3c2d5c |
|
BLAKE2b-256 | e929931a992d25ba69ea6e4e9d3ea47ac21cbc68747c3c97078c300ac71f076a |