Rotate an AWS Secrets Manager secret immediately - AWS Secrets Manager
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Rotate an AWS Secrets Manager secret immediately

You can only rotate a secret that has rotation configured. To determine whether a secret has been configured for rotation, in the console, view the secret and scroll down to the Rotation configuration section. If Rotation status is Enabled, then the secret is configured for rotation. If not, see Rotate AWS Secrets Manager secrets.

To rotate a secret immediately (console)
  1. Open the Secrets Manager console at https://eusc-de-east-1.console.amazonaws-eusc.eu/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 CLI

Example Rotate a secret immediately

The following rotate-secret example starts an immediate rotation. The secret must already have rotation configured.

$ aws secretsmanager rotate-secret \ --secret-id MyTestSecret