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.82.tar.gz
(75.5 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.82.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b56c63757afa9c820d7cb00f6a8a040eaa38c944dac7f2df050b3bff40bb0ae |
|
MD5 | f55e8560fad9450ee80cf381eae7a9d7 |
|
BLAKE2b-256 | b6d971703946d40d8b4726740a64b8e626666750504fdc146b05494d64a2f154 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.82-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65886baee7423b0b2b5aa5b2e710e1ba23bc78daba05718d9d5da9cd9bd92815 |
|
MD5 | 166f53c37e134a5722d8d56a1c964c95 |
|
BLAKE2b-256 | bf908fb255d747eef70a088e35fda442bc70f01c2099c1d8cd51502c59ae315c |