This repository contains a set of example projects for the AWS Cloud Development Kit.
To run a TypeScript example, say my-widget-service:
$ npm install -g aws-cdk
$ cd typescript/my-widget-service
$ npm install
$ npm run build
$ cdk deploy // Deploys the CloudFormation template
# Afterwards
$ cdk destroy
Example | Description |
---|---|
application-load-balancer | Using an AutoScalingGroup with an Application Load Balancer |
chat-app | A serverless chat application using Cognito |
classic-load-balancer | Using an AutoScalingGroup with a Classic Load Balancer |
custom-resource | Shows adding a Custom Resource to your CDK app |
elasticbeanstalk | Elastic Beanstalk example using L1 with a Blue/Green pipeline (community contributed) |
ecs-cluster | Provision an ECS Cluster with custom Autoscaling Group configuration |
ecs-load-balanced-service | Starting a container fronted by a load balancer on ECS |
ecs-service-with-task-placement | Starting a container ECS with task placement specifications |
ecs-service-with-advanced-alb-config | Starting a container fronted by a load balancer on ECS with added load balancer configuration |
fargate-load-balanced-service | Starting a container fronted by a load balancer on Fargate |
fargate-service-with-auto-scaling | Starting an ECS service of FARGATE launch type that auto scales based on average CPU Utilization |
lambda-cron | Running a Lambda on a schedule |
my-widget-service | Use Lambda to serve up widgets |
resource-overrides | Shows how to override generated CloudFormation code |
static-site | A static site using CloudFront |
stepfunctions-job-poller | A simple StepFunctions workflow |
To run the Java examples:
$ npm install -g aws-cdk
$ mvn compile
$ cdk deploy
# Afterwards
$ cdk destroy
Example | Description |
---|---|
hello-world | A demo application that uses the CDK in Java |
This library is licensed under the Apache 2.0 License.