MCPcopy
hub / github.com/aws-samples/aws-cdk-examples

github.com/aws-samples/aws-cdk-examples @main sqlite

repository ↗ · DeepWiki ↗
1,583 symbols 4,645 edges 798 files 147 documented · 9%
README

AWS CDK Examples

This repository contains a set of example projects for the AWS Cloud Development Kit.

Table of Contents

  1. About this Repo
  2. Examples
  3. Learning Resources
  4. Additional Examples
  5. License

About this Repo

This repo is our official list of CDK example code. The repo is subdivided into sections for each language (see "Examples"). Each language has its own subsection of examples with the ultimate aim of complete language parity (same subset of examples exist in each language). These examples each provide a demonstration of a common service implementation, or infrastructure pattern that could be useful in your use of the CDK for building your own infrastructure.

We welcome contributions to this repo in the form of fixes to existing examples or addition of new examples. For more information on contributing, please see the CONTRIBUTING guide.

This is considered an intermediate learning resource and should typically be referenced after reading the Developer Guide or CDK Workshop (please see Learning Resources for more information on these resources).

Examples

This repo contains examples in each language supported by the CDK. Some languages are fully supported by JSII, but as additional languages are added, you will see those marked as Developer Preview. You can find the examples for each of those languages at the following links:

Language JSII Language-Stability
Typescript Examples Stable
Python Examples Stable
.NET Examples Stable
Java Examples Stable
Go Examples Stable

Learning Resources

While this is an excellent learning resource for the CDK, there are other resources that can be referenced to assist with your learning/development process.

Official Resources

Unofficial/Community Resources

If you have created a CDK learning resource and would like it to be listed here, please read the related CONTRIBUTING section for more info.

Additional Examples

The examples listed below are larger examples hosted in their own repositories that demonstrate more complex or complete CDK applications.

If you would like your repo to be listed here, please read the CONTRIBUTING guide for more details.

Example Description Owner
aws-cdk-changelogs-demo A full serverless Node.js application stack deployed using CDK. It uses AWS Lambda, AWS Fargate, DynamoDB, Elasticache, S3, and CloudFront. AWS

License

This library is licensed under the Apache 2.0 License.

Extension points exported contracts — how you extend this code

LambdaCloudwatchDashboardStackProps (Interface)
(no doc)
typescript/lambda-cloudwatch-dashboard/lib/lambda-cloudwatch-dashboard-stack.ts
ChaosMeshAddOnProps (Interface)
(no doc)
typescript/aiops-eks-workshop/lib/chaosmesh_addon.ts
producerStackProps (Interface)
(no doc)
typescript/eventbridge-mesh/multiple-consumers/index.ts
SftpServerStackProps (Interface)
(no doc)
typescript/aws-transfer-sftp-server/aws-transfer-sftp-server.ts
CIStackProps (Interface)
(no doc)
typescript/lambda-api-ci/lib/ci-stack.ts
MyCustomResourceProps (Interface)
(no doc)
typescript/custom-resource-provider/my-custom-resource.ts
LambdaResponse (Interface)
(no doc)
typescript/s3-sns-lambda-chain/lambda/lambda.ts
EC2StackProps (Interface)
(no doc)
typescript/ec2-instance/lib/ec2-stack.ts

Core symbols most depended-on inside this repo

build
called by 271
java/eks/fargate-cluster/src/main/java/com/amazonaws/cdk/EksFargateProps.java
builder
called by 173
java/eks/fargate-cluster/src/main/java/com/amazonaws/cdk/EksFargateProps.java
log
called by 168
java/s3-object-lambda/lambda/src/main/java/com/myorg/S3ObjectLambdaTransformer.java
create
called by 118
python/custom-resource/my_custom_resource.py
build
called by 23
java/hello-world/src/main/java/software/amazon/awscdk/examples/SinkQueueProps.java
vpc
called by 16
java/eks/fargate-cluster/src/main/java/com/amazonaws/cdk/EksFargateProps.java
runStep
called by 12
scripts/build-toolkit/src/runner.ts
normalizeTemplate
called by 9
typescript/test-utils/normalize-template.ts

Shape

Method 576
Class 498
Function 404
Interface 57
Struct 38
Route 8
Enum 2

Languages

TypeScript39%
Python29%
Java22%
Go10%

Modules by API surface

java/application-load-balancer/src/test/java/com/myorg/ApplicationLoadBalancerTest.java22 symbols
java/http-proxy-apigateway/src/test/java/com/myorg/HttpProxyApiGatewayTest.java15 symbols
java/cognito-api-lambda/src/test/java/com/myorg/CognitoApiLambdaTest.java14 symbols
scripts/update-packagejson/src/update-cdk-packages.ts12 symbols
scripts/update-cdk-packages.ts12 symbols
java/eventbridge-lambda/src/test/java/com/myorg/EventBridgeLambdaTest.java12 symbols
python/vpc-ec2-local-zones/vpc_ec2_local_zones/vpc_ec2_local_zones_stack.py11 symbols
scripts/build-all-typescript.js10 symbols
python/sagemaker-multimodel-endpoint/docker/model_handler.py10 symbols
python/iot-msk-lambda-pipeline/msk_demo/msk_demo_stack.py10 symbols
java/hello-world/src/main/java/software/amazon/awscdk/examples/SinkQueueProps.java10 symbols
java/alb-multi-rule-response/src/main/java/com/myorg/utils/PropertyLoader.java10 symbols

Dependencies from manifests, versioned

github.com/Masterminds/semver/v3v3.2.1 · 1×
github.com/aws/aws-cdk-go/awscdk/v2v2.118.0 · 1×
github.com/aws/aws-cdk-go/awscdklambdagoalpha/v2v2.202.0-alpha.0 · 1×
github.com/aws/aws-lambda-gov1.49.0 · 1×
github.com/aws/aws-sdk-go-v2v1.32.5 · 1×
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstreamv1.7.8 · 1×
github.com/aws/aws-sdk-go-v2/configv1.28.5 · 1×
github.com/aws/aws-sdk-go-v2/credentialsv1.17.46 · 1×
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevaluev1.18.6 · 1×
github.com/aws/aws-sdk-go-v2/feature/ec2/imdsv1.16.20 · 1×
github.com/aws/aws-sdk-go-v2/internal/configsourcesv1.3.24 · 1×
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2v2.6.24 · 1×

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add aws-cdk-examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact