https://github.com/madetech/aws-sandbox
AWS Sandbox Nuke
https://github.com/madetech/aws-sandbox
Last synced: about 1 year ago
JSON representation
AWS Sandbox Nuke
- Host: GitHub
- URL: https://github.com/madetech/aws-sandbox
- Owner: madetech
- Created: 2021-02-13T08:51:09.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-23T15:35:44.000Z (over 1 year ago)
- Last Synced: 2025-01-23T16:33:50.582Z (over 1 year ago)
- Language: HCL
- Size: 77.1 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Sandbox Nuke
## Purpose
This repo contains the config to periodically clean the AWS Sandbox account of all
resources using `aws-nuke`. It also contains the Terraform to deploy the AWS resources
required to run this job remotely.
It is possible to exlude resources you wish to retain by adding them to the `aws-nuke.yaml` config file.
## Repo Structure
- aws-nuke.yaml config file is used by [aws-nuke](https://github.com/rebuy-de/aws-nuke#readme)
- buildspec.yml is used by AWS CodeBuild
- Terraform IAC code is within the `terraform` directory
- Terraform IAC initial setup code for state file bucket/dynamodb is within the `terraform/bootstrap` directory
## Test Locally
Test locally after updating aws-nuke.yaml
```
aws-vault exec madesso -- aws-nuke -c aws-nuke.yaml -q --force
```
By default `aws-nuke` runs in dry-run mode. To really delete things add the `--no-dry-run` flag.