Created
June 8, 2026 06:58
-
-
Save matobaa/d6571b1e9364b520c77a2f05973105f3 to your computer and use it in GitHub Desktop.
aws nuke with docker image on aws cloudshell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .env: | |
| aws configure export-credentials | jq -r '"AWS_ACCESS_KEY_ID=\(.AccessKeyId)","AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey)","AWS_SESSION_TOKEN=\(.SessionToken)"' > .env | |
| run: config.yaml .env | |
| docker run \ | |
| -it --rm \ | |
| --mount type=bind,source=./config.yaml,target=/config.yaml \ | |
| --env-file .env \ | |
| ghcr.io/ekristen/aws-nuke:v3.65.0-23-gcc0f7e9-amd64 \ | |
| run --no-alias-check | |
| clean: | |
| - rm .env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment