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.8.tar.gz
(73.8 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0b3ca3e4cd99d7590d163137f68fd0953846c1a4fbcd5bd3a40f38da1bb66f5 |
|
MD5 | f12514a5f25d05cee6a57f0a3ef5646c |
|
BLAKE2b-256 | cb4f034b72b8e73a92ad4fd9be390aa4cb903bcb76a6c3d37468356c5c53dffa |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ab89a28001273a60c1cc25dd5b66753bfc62053c20f7af15aa94c01072d03f |
|
MD5 | e26332137ceb5a626d1f36b79d0d73ba |
|
BLAKE2b-256 | 52cb4a93a70e8a016961a5ba42bdf0106d4208a075a94fbadcb26e7e4042e048 |