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"]
)
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.2.tar.gz
(65.1 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0454fe71ffcce9a3b339c68c55a1d53d68353b72743be93a2fca8fe0e5029b85 |
|
MD5 | dce56cf93f86375eb757dd4e0a6f0381 |
|
BLAKE2b-256 | 87c4eef5483197875292290ac66225bc5d7cfcfb251225e30ef82c82c8e44fce |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed1ce13c76c460f1e4fe8873943afcc2ffdba9bb17a2c10112860dda231e5f99 |
|
MD5 | a80e5b198b5968a9e2c1fb0ea392add2 |
|
BLAKE2b-256 | e09954e88f7336c17ea5acdf2dbd437c70073067d34333e474930d9258815ee6 |