Command option Sample:aws secretsmanager rotate-secret

Search command sample in the internet.It is the result.

Configures and starts the asynchronous process of rotating thissecret.Show details from next link. https://docs.aws.amazon.com/ja_jp/cli/latest/reference/secretsmanager/rotate-secret.html

aws secretsmanager rotate-secret --secret-id MyTestDatabaseSecret \
    rotate-secret — AWS CLI 1.16.13 Command Reference : http://docs.aws.amazon.com/goto/aws-cli/secretsmanager-2017-10-17/RotateSecret
aws secretsmanager rotate-secret --secret-id 'rds/my-db/account' --rotation-lambda-arn 'arn:aws:lambda:us-east-1:xxxxxxxxxxxx:function:rotate-rds-secret' --rotation-rules AutomaticallyAfterDays=1
    amazon iam - Allow other AWS services to invoke Lambda using IAM - Server Fault : http://serverfault.com/questions/909097/allow-other-aws-services-to-invoke-lambda-using-iam
aws secretsmanager rotate-secret --secret-id /poc/MySQL/secretmanager
    Rotating and auditing RDS credentials using AWS Secrets Manager. | LinkedIn  : http://www.linkedin.com/pulse/rotating-auditing-rds-credentials-using-aws-secrets-manager-sharma

aws のオプション一覧