Three systems must agree
How automated workflows coordinate credential replacement across validating systems, secret stores, and consumers, with safe cutover, failure recovery, and retirement of old credentials. · advanced
Credential rotation coordinates three distinct states: what the validating system accepts, what the secret store publishes, and what consumers actually use. Updating storage alone does not change a database password. Successful rotation must also establish working consumer access and retire the predecessor.
This architecture uses Secrets Manager Lambda-based rotation for an RDS database password and an EC2 application that retrieves secrets at runtime. Secrets Manager invokes the Lambda rotation handler; the application is not sent a password by that handler. Only initiating credential-lifecycle calls are drawn: responses, infrastructure dependencies, and telemetry are omitted.
Parameter Store SecureString provides encrypted parameter storage, but its parameter policies do not rotate a database password. KMS key rotation changes encryption key material, not the password. Step Functions can orchestrate custom workflows, but it is not the directly invoked rotation handler in this Secrets Manager integration.
1 / 5 Secrets Manager holds secret versions and staging labels. Its rotation configuration determines when the configured rotation function is invoked.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.