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.78.tar.gz
(76.1 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.78.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e401b60c3a27008cd5c5f2b2055cf43ddf468cd0bf93de7d2d8336118dd0ad26 |
|
MD5 | 0e947ce97b81a9cee8d8aa0c7da3eee9 |
|
BLAKE2b-256 | db93b207317d82dc423489ca92d1ca8cd0f80f15709fcaef27b245a458a35178 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.78-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 640c3305202709fe2aab13cde5c23782fb7eb776cd312f5b23d0fbf53909bb01 |
|
MD5 | 9fd529a83e017b9dcac819d5587dca22 |
|
BLAKE2b-256 | 74d57a41cb235b2a8aeded32c74f24da5996e69e93e564f9fafb7c126edf9115 |