How would you automate the rotation of compromised credentials across a multi-cloud environment using Bash?