CmdID / aws / aws secretsmanager
aws secretsmanager rotate-secret
Configures and starts the asynchronous process of rotating the secret. AWS CLI reference
7 options Its page in the AWS CLI reference
Options
--client-request-tokenA unique identifier for the new version of the secret.--external-secret-rotation-metadataThe metadata needed to successfully rotate a managed external secret.--external-secret-rotation-role-arnThe Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner.--rotate-immediatelySpecifies whether to rotate the secret immediately or wait until the next scheduled rotation window.--rotation-lambda-arnFor secrets that use a Lambda rotation function to rotate, the ARN of the Lambda rotation function.--rotation-rulesA structure that defines the rotation configuration for this secret.--secret-idThe ARN or name of the secret to rotate.