Skip to content
devops2 active rulesVerified 2026-09-30

CDK (AWS) .gitignore Template

Standard CDK (AWS) gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Preconfigured with CDK (AWS)
Search for templates
Quick add:
Selected1
CDK (AWS)
Selected Templates (1)
.gitignore
2 rules
### CDK (AWS) ###
# CDK asset staging directory.
# For more information about AWS-CDK, see https://docs.aws.amazon.com/cdk/
.cdk.staging/
cdk.out/
6 lines•UTF-8
Deterministic

Raw CDK (AWS) .gitignore

Crawlable upstream source template
aws-cdk.gitignore•5 lines•UTF-8
# CDK asset staging directory.
# For more information about AWS-CDK, see https://docs.aws.amazon.com/cdk/
.cdk.staging/
cdk.out/

Key Pattern Breakdown

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

cdk.out/

Source & Verification

License: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.