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.28.tar.gz
(74.4 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e490afd7bef9ec65706bbb388644526892987fae1c23205a6db1f144b9c7d2eb |
|
MD5 | 61f6d9b6180f89c14a9a81063e453b3b |
|
BLAKE2b-256 | 7e529889b22b12def82e7ceb388106cfbd24a9d78f79fc314c29d4dc93c263df |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24534e759e14a8923f4a6ce7118c5e5389f71c4953820d7843a36f81eca7dae0 |
|
MD5 | 4f473bbb70c082a68b8cee25f6d51a14 |
|
BLAKE2b-256 | c971f764701caa36dca294c160a58fe8d3f59a5c4aad8a96eb37d8893d9e0d9d |