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. 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. 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. 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.73.tar.gz
(76.0 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.73.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 516ec37ddb90e8a28d1503d946e66a199bec6f36a84f50f438eba567b5b8999a |
|
MD5 | 093f41b750044b336e88014e7b4fd001 |
|
BLAKE2b-256 | 8d2226901c6945fb3a8cd2b0c23655163c9cb527e43aa8503e927f89d9860026 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.73-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ff077c7a4bb564980a765e4fafaa79489c983960c69dc3f45d004be46e254c |
|
MD5 | 4ee977afe796e6701932536a3e3cab6f |
|
BLAKE2b-256 | 9ca6f67dc3e7fdf714f2148882beaab2b4b4cac51901012f16626caaaa4c9288 |