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.20.tar.gz
(73.8 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e4942196b9364f0937cbf1c4aef711b8508be1ea543a21c4340fe8a1754b91 |
|
MD5 | f774b0022e3600b92d0bf5c09ee352e8 |
|
BLAKE2b-256 | 562bd0b7a6fef3d8370098f95e37abc48d792bd58dc21faa0579b7c794d11ab7 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288e480c174984330cbf6843e0786a2ce67bda601fca5027a3280c0351327f05 |
|
MD5 | 7eb3cbd95bf7025cf59e448213fff004 |
|
BLAKE2b-256 | 63ff7130ee30f4b3a81655b44f0ccf9b93c4b2fd530b2e2f3f68f5c592350d0e |