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"]
)
Bottlerocket support
To create cluster capacity with Bottlerocket machine image:
# Example automatically generated without compilation. 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.7.tar.gz
(73.8 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd53d12c37d58267aa14b465ec7926cf33d70e4e27c5304cd20b600f136b5eb9 |
|
MD5 | 46eed578f5802fd32c042a10b7b513a9 |
|
BLAKE2b-256 | 9bd87d33fe89ecf60ec11dc569f4ba340f5a81d5d3f5ee1e60b8b13347ba3278 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30de05d9fc0548fe5b0dc069b5cb8f507662a9c082033b5aeae72b66d7b2173c |
|
MD5 | 9447ac762e1481e20e21f9d558933624 |
|
BLAKE2b-256 | 20d23a98d5b38e1dca87fca640ecec06044330fa164efa52d4349f0d0b6fe197 |