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.86.tar.gz
(75.4 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.86.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c7544980fb75ae3e53b709121bf308f038ec0b6d52bb9db65d45545c0ddf0b |
|
MD5 | b9712e808653a706f6ff3529306ec810 |
|
BLAKE2b-256 | 3b395a4b8fdff67f3ea0f253a61feb3f4a46e6c858a5c49e10159b531405fefb |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.86-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39119f0a12c392cb687790f84cd0c844d3491832ba37009593044512148847b |
|
MD5 | de84cf4f539e1be159269e8200fc37b5 |
|
BLAKE2b-256 | 1cba10c649df6df31a53e50edb0ac67f832f308751a7fc27017301465ffad8e3 |