When secret rotation is enabled, Secrets Manager calls a Lambda function to generate and store a new secret value. AWS provides pre-built rotation Lambdas for RDS (PostgreSQL, MySQL, MariaDB), Redshift, and DocumentDB via the Serverless Application Repository. You deploy the Lambda first, then paste its ARN into the rotationLambdaArn field.
Paste into this field
Secrets Manager → rotationLambdaArnOutput looks like
arn:aws:lambda:us-east-1:123456789012:function:SecretsManagerRDSPostgreSQLRotationNavigate to the Serverless Application Repository in the AWS Console. Search for "SecretsManager". AWS publishes official rotation Lambdas:
• SecretsManagerRDSPostgreSQLRotationSingleUser — PostgreSQL single-user rotation
• SecretsManagerRDSMySQLRotationSingleUser — MySQL/MariaDB single-user rotation
• SecretsManagerRedshiftRotationSingleUser — Redshift rotation
Click the function → "Deploy". Fill in parameters (VPC, subnet IDs if database is in a VPC). Click "Deploy".
In Secrets Manager → your secret → "Rotation" tab → click "Edit rotation". Select the Lambda you just deployed. AWS automatically adds the resource-based policy to allow Secrets Manager to invoke it.
In Lambda → Functions → click the rotation function → copy the "Function ARN" at the top right.
Select your Secrets Manager node → paste the ARN into "rotationLambdaArn".
Once you have the value, go back to CloudStack Canvas and paste it into the highlighted field.
CloudStack Canvas · Validation Guide