Normally, this would be achieved with a scripting language like Python or Bash, and integration with secret management APIs, such as AWS Secrets Manager or Vault. Python example on AWS:

Integrate this into your CI/CD pipeline to rotate secrets at regular intervals or in response to specific events.