.gitignore for AWS CDK
2 ignore rules for AWS CDK, ready to copy into your repository.
Framework for defining cloud infrastructure
The complete .gitignore for AWS CDK
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 02:28:42 UTC
# Technologies: AWS CDK
### AWS CDK ###
.cdk.staging/
cdk.out/
What these AWS CDK rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
For more information about AWS-CDK, see https://docs.aws.amazon.com/cdk/
| Pattern | What it ignores |
|---|---|
.cdk.staging/ |
For more information about AWS-CDK, see https://docs.aws.amazon.com/cdk/ |
cdk.out/ |
For more information about AWS-CDK, see https://docs.aws.amazon.com/cdk/ |
How to use this .gitignore for AWS CDK
- Copy the AWS CDK rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.