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.57.tar.gz
(76.0 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.57.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1383ef9706515f4dedc7e0c00720bd5239abcf9d39ddd7fd002ff0822ab0c0f5 |
|
MD5 | 756d28017241a3d63daa15855c36e4dd |
|
BLAKE2b-256 | 1e19b4a8a1ac9b6bc70dc509740d57055a33f79f0bc8a1865a59ebc17f50ace9 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.57-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a502c555356cce52b11991df3b13652aed48498acb0b7c3d8886d2a5a3fbba |
|
MD5 | d8d11265823d675afc6593607a2725ad |
|
BLAKE2b-256 | 72059ff2bdd811268fdbd3177ab7777c1c0b1f32ba97541599ba28c83afdf5f4 |