データベースの認証情報や、パスワードなどの任意のシークレット情報をAPIコールで取得できるためのAWSサービス
aws secretsmanager get-secret-value --secret-id "シークレット名またはARN" 例 aws secretsmanager get-secret-value \ --secret-id "my-database-secret" aws secretsmanager get-secret-value \ --secret-id "arn:aws:secretsmanager:ap-northeast-1:123456789012:secret:my-database-secret-xxxxxx"
aws secretsmanager get-secret-value --secret-id "シークレット名またはARN" \ --region ${REGION} 例 aws secretsmanager get-secret-value --secret-id "my-database-secret" \ --region ap-northeast-3 aws secretsmanager get-secret-value --secret-id "my-database-secret" \ --region ap-northeast-3 \ --endpoint-url https://vpce-xxxxxxxxx.secretsmanager.ap-northeast-3.vpce.amazonaws.com
aws secretsmanager get-secret-value --region ${REGION} \ --secret-id ${SECRETS_ID} | jq -r .SecretString