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.34.tar.gz
(74.4 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6db7bb085b111c9d60026a2e7ea54bfb6dde401bad142f2c769bc91df92db8f7 |
|
MD5 | c3ea2fed705ef1e6747cad295d9db113 |
|
BLAKE2b-256 | 77616fa59f935a74aa77af1ac72a31e777c2498e7a35b4eb8831bf23b275a0a6 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce1b7e76de9abea804a61fd09797bfe7dd52e7c815c2a3487542cefc515bcdc4 |
|
MD5 | eb4110fefe3c0cbad5e6e5aa9327468f |
|
BLAKE2b-256 | 4cd06ac0720da0bf5ee8fe76a6898d2ae6d1e757bfc76838adba3cd31d7ba091 |