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 without compilation. See https://github.com/aws/jsii/issues/826
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 without compilation. See https://github.com/aws/jsii/issues/826
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 without compilation. See https://github.com/aws/jsii/issues/826
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.50.tar.gz
(76.0 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.50.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf6596049d27c3fdcca02db589562751bfcda17b6de3960e5d8435874ee7376 |
|
MD5 | b1559bfa96caa34cbd25d5803398e908 |
|
BLAKE2b-256 | f62af158117e3fde487d1eaab230d8f72cf682585dd2a51e12681ac9815c0a6d |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.50-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65595d26636b97bab61ffc9750a4c2aca864e461c99e17e98a208a4623477c02 |
|
MD5 | fecf654d9202d040766e6449bfae841e |
|
BLAKE2b-256 | 552fad3f3525f00c68833ab0b62f016eb47a95ae03db236716ea1b177704cd18 |