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. 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. 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. 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.74.tar.gz
(76.0 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.74.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea0f3e62794a60f0b49ebdd6130de875cf7f3ef581b8b8f15c76d1c49c1a764 |
|
MD5 | 98927e659c4c0d59252be5ab52339935 |
|
BLAKE2b-256 | 6f54d90249ef7aa6ee70c85a27339003e8958a288b25059558cca2c704cffe35 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.74-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 171cff9694db1159235fe7f5300f2aa703eed7fb979ed1ea638cf00e63e2c812 |
|
MD5 | 447a7832a661f77e55cebd2b68f1a199 |
|
BLAKE2b-256 | 5512b9ad81495f711749f069b1570e94540ee1046de5dce4bf56f6ebf0685f0a |