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.52.tar.gz
(76.0 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f1b1d8c6ca07ff5976f4fd37ae3d05d1d2b0ac21b16263a68ad66287baea98 |
|
MD5 | 11a3132e759832bd46dfefa0fb14d98f |
|
BLAKE2b-256 | 66d269203994686869548b57fc4ab247e256cc9d3cc68f5a1e2c8f85446177d7 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17c3ed67b538d2b2cb06c7df0b5a15552538bfc014cd63191119a1c0a9b7f472 |
|
MD5 | d84f9cc9a3dfbd4b776a9602530f571c |
|
BLAKE2b-256 | e6dc88948b30cc0aaec94a5506d3bb5d59fd53943ea808c9c79fdc8d69a16d06 |