This template creates a DocumentDB database instance and a secret with credentials. The secret is configured to rotate on the first Sunday of every month between 4:00 AM and 6:00 AM UTC. The rotation is performed by a Lambda function.

TestVPC
AWS::EC2::VPC


TestSubnet01
AWS::EC2::Subnet


TestSubnet02
AWS::EC2::Subnet


SecretsManagerVPCEndpoint
AWS::EC2::VPCEndpoint


SecurityGroupIds

SubnetIds

MyDocDBClusterRotationSecret
AWS::SecretsManager::Secret


GenerateSecretString
Tags

MyDocDBCluster
AWS::DocDB::DBCluster


VpcSecurityGroupIds

DocDBInstance
AWS::DocDB::DBInstance


MyDBSubnetGroup
AWS::DocDB::DBSubnetGroup


SubnetIds

SecretDocDBClusterAttachment
AWS::SecretsManager::SecretTargetAttachment


MySecretRotationSchedule
AWS::SecretsManager::RotationSchedule


HostedRotationLambda
RotationRules

CloudFormation Template

Share Template