NewsCrawler.org

Local CDK Development with AWS Emulator and cdkd

AWS Emulator × cdkd で実現する効率的な CDK 開発
Image: zenn.dev

The article describes using AWS Emulator, a tool released in November 2026 that emulates AWS APIs locally, together with cdkd, a tool that deploys CDK[1] apps by calling the AWS SDK directly instead of CloudFormation[2]. With the --aws-emulator flag, cdkd sets up the connection to the emulator and runs bootstrap[3] automatically, and it resolves Lambda environment variables from the CDK code, so no .env file is needed.

cdkd local runs only the application code on the developer's machine. The connection can be chosen separately for each AWS service: for example, Secrets Manager and Cognito can stay on real AWS while DynamoDB and S3 point to the emulator, set by "real-aws" values in a JSON file passed with --env-vars. Secret ARNs then come from real AWS, while table and queue names come from the emulator.

The application code runs from source in Docker and is not deployed to the emulator, so changes can be run again right away without redeploying. The author also lists limits found with AWS Emulator 1.0.322: Lambda functions inside the emulator cannot reach external APIs, local databases or real AWS, and container-image Lambdas, ECS and AgentCore did not run. Some standard language features, such as fetch in Node.js, were also missing.

Read the original zenn.dev

Sources

  • Zenn JA

    AWS Emulator × cdkd で実現する効率的な CDK 開発

    4 likes0 bookmarks0 comments

Earlier in this story

  1. How far CDK and Terraform stacks work on AWS Emulator

The whole story · 2 →

Published: First seen: Читать по-русски

Open as a page