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.17.tar.gz
(73.8 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4d150354e858a7b83b2347d55bb2a86dfff83052a5fdc627b21c2a487d1ee9 |
|
MD5 | ed078bc75cd877724fa5ade94465edf6 |
|
BLAKE2b-256 | bc99d80819eb220a35b0a43055e25cfdd47765f97f2460174c3f96f7fb6bdda5 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec7b767fa91a8c578a7d7d646f10b5fd93aeb93a57fe623f7bd5446bac1eedc |
|
MD5 | 62543340b46de11d36bc246271322ed4 |
|
BLAKE2b-256 | a9c6be3d85d65fc4cad581dd210fd327fc3581326c0972610ab6ea3f662e70db |