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.29.tar.gz
(74.4 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-ecs-0.1.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4319ae4d13c4676a89e395f2de144d2147378ba721ce04049d0038c73913c61 |
|
MD5 | c1983255c609d30e6f4c89c4bc43b5d4 |
|
BLAKE2b-256 | aac8bfa4d567a0d6382b3a3b216324d494f84d9842706c866ce785cda7bc1f50 |
Close
Hashes for pahud_cdktf_aws_ecs-0.1.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed9c213f3fc8c819725ab5af6ddd2b3f0c46fd1e8dbb4d4f48016a93695b89e |
|
MD5 | 949e15d76a58406fa96e8e3f4b2c3a67 |
|
BLAKE2b-256 | 2e7780dca0fe515c37476bcc1f00bb73389f98b885452942be31858dfc91b9fe |