Rotate a secret immediately - AWS Secrets Manager

Rotate a secret immediately

You can only rotate a secret that has rotation configured. This can be a secret that currently has automatic rotation turned on, or one that previously had rotation turned on. Turn on automatic rotation for:

To rotate a secret immediately (console)

  1. Open the Secrets Manager console at https://console.aws.amazon.com/secretsmanager/.

  2. Choose your secret.

  3. On the secret details page, under Rotation configuration, choose Rotate secret immediately.

  4. In the Rotate secret dialog box, choose Rotate.

AWS SDK and AWS CLI

To rotate a secret immediately, see rotate-secret.

AWS SDK

To rotate a secret immediately, use the RotateSecret action. For more information, see AWS SDKs.