Skip to content

Instantly share code, notes, and snippets.

@matobaa
Created June 8, 2026 06:58
Show Gist options
  • Select an option

  • Save matobaa/d6571b1e9364b520c77a2f05973105f3 to your computer and use it in GitHub Desktop.

Select an option

Save matobaa/d6571b1e9364b520c77a2f05973105f3 to your computer and use it in GitHub Desktop.
aws nuke with docker image on aws cloudshell
.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