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.62.tar.gz
(76.0 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.62.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 797e75a1e9bcc99d00cb5623f14176573fdd433305e954c7f2f0ecb80a1eb89a |
|
MD5 | ac1849af616b74962e1d596551f90a0e |
|
BLAKE2b-256 | b45793105a5fb80819492a41c363126b75a8423918021e7920b90347e0037539 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.62-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e4b558aed16232548e743a50e7d7f4fb79cc637e8e60ef81cd38e3018dcf6b |
|
MD5 | 7c7ffabca2a8e769119fd140c29b451b |
|
BLAKE2b-256 | dd02457536daea477e17f38f92492efb016725275c45e34012eea52a9b621f3d |