Cleanup

Cleanup #

Time to clean up the resources created in this workshop:

Delete the CodeCommit Repo #

Navigate to CodeCommit and delete the construct-lib-repo repository.

Delete the DynamoDB Table #

Then navigate to DynamoDB and delete the HelloCdkAppStack-HelloHitCounterHitsXXXXXXXX-XXXXXXXXXXXX table.

Remove and Delete the CodeArtifact Upstream Repositories #

Run this command to disassociate all upstream repositories from the CodeArtifact domain:

aws codeartifact update-repository --repository cdkworkshop-repository --domain cdkworkshop-domain --upstreams --region [Insert Region]

Then run this command to delete the actual upstream repository (npm-store):

aws codeartifact delete-repository --domain cdkworkshop-domain --repository npm-store --region [Insert Region]

Reset Your NPM Registry #

npm config set registry https://registry.npmjs.com/

Delete Cloudformation Stacks #

To clean up the resources created in this section of the workshop, navigate to CloudFormation and delete the stacks named InternalConstructHubStack, InternalConstructPipelineStack, and HelloCdkAppStack.

Delete S3 Buckets #

Navigate to S3 and delete the buckets (~11 of them) whose names begin with internalconstruct. Some may need to be emptied before deleting them. See the Deleting a bucket documentation for more information.

Delete the construct-hub-workshop Directory #

On your machine, delete the construct-hub-workshop directory.

We use analytics to make this content better, but only with your permission.

More information