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.3.tar.gz
(69.4 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5aa42e69f100b7428faaca0b27a3641140aa965cbf779da4cb10fcb662b3f92 |
|
MD5 | f3bdaab342d4fbd7bbe7ff362a34a6b1 |
|
BLAKE2b-256 | 88a174132bd2fe5fca8d698fd1a006397343cd60638c26a8e41bd744c866e8c3 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f4bc02b7250a4e75585394d81eb9ed7d892f1c7ec57997084a30ec8fcb8b40 |
|
MD5 | 6d59924acfcf6a6a6b3843529a8720c7 |
|
BLAKE2b-256 | 885f19c3d911604651824704b5b75991bc4e111351207ea277fb7c87eb3f71af |