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)
Open the Secrets Manager console at https://console.aws.amazon.com/secretsmanager/
. -
Choose your secret.
-
On the secret details page, under Rotation configuration, choose Rotate secret immediately.
-
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.