aws / aws/aws-cdk-cli

(synth): Toolkit should cleanup old assets in the cdk.out directory

Open
#786 41 comments 136 reactions 0 assignees View on GitHub
effort/medium feature-request p1
Dominant language
TypeScript
Stars
105
Forks
122
Avg merge
1d 17h
Merged PRs (30d)
71

Description

Each time I run a CDK deploy I get a new asset in the asset's directory, and they seem to accumulate forever. Each asset folder is around 100 MB for me, so this quickly adds up to many GB of data. Here is a screenshot of it accumulating assets again after the last time I cleaned it out manually.

![Screen Shot 2019-06-13 at 2 26 47 PM](https://user-images.githubusercontent.com/3495674/59458394-5b960c00-8de8-11e9-9147-ae0ff1ad3b81.png)

Ideally I would like a CDK configuration that would cause CDK to automatically garbage collect older asset files it no longer needs so I don't have to do it manually.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.