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.5.tar.gz
(69.5 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a50ce032ed63d1177f49b232a01916c92279444357a598b65ccf243d9b4a0b |
|
MD5 | 9cf601e40ae429d1b8c4db66fa1cda58 |
|
BLAKE2b-256 | 4ca7f5652e304cdc831017d050a5db90015823cd30a06606cf14736c4a83f90e |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f01b06bc50be01c090b3f38e1b855d01ecba7ba8a3a4b49d6d95a8040f65aa80 |
|
MD5 | 326b479228ad081c58612a8b605f91d7 |
|
BLAKE2b-256 | 6b7de50c48404696f179b4147a0d3f79a65f8f217e9bba63fa19e3bcb09bcb5d |