Created
March 26, 2025 06:23
-
-
Save pen-pal/926765839a940e2a614993aa70495475 to your computer and use it in GitHub Desktop.
force delete all the secrets from secrets manager without recovery
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
| aws secretsmanager list-secrets --query "SecretList[].Name" --output text |xargs |tr ' ' '\n' | xargs -I {} aws secretsmanager delete-secret --secret-id {} --force-delete-without-recovery |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment