Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created June 10, 2020 16:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save random-robbie/2f7986b0363d38e148bd6241f54212b3 to your computer and use it in GitHub Desktop.
Save random-robbie/2f7986b0363d38e148bd6241f54212b3 to your computer and use it in GitHub Desktop.
./secrets-dump.sh | tee sec.txt
#!/bin/bash
for sec in `aws secretsmanager list-secrets | jq -r '.SecretList[].Name'`; do
aws secretsmanager get-secret-value --secret-id $sec
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment