Using RDS Proxy with Amazon CloudFormation - Amazon Aurora
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Using RDS Proxy with Amazon CloudFormation

You can use RDS Proxy with Amazon CloudFormation. This helps you to create groups of related resources. Such a group can include a proxy that can connect to a newly created Aurora DB cluster. RDS Proxy support in Amazon CloudFormation involves two new registry types: DBProxy and DBProxyTargetGroup.

The following listing shows a sample Amazon CloudFormation template for RDS Proxy.

Resources: DBProxy: Type: Amazon::RDS::DBProxy Properties: DBProxyName: CanaryProxy EngineFamily: MYSQL RoleArn: Fn::ImportValue: SecretReaderRoleArn Auth: - {AuthScheme: SECRETS, SecretArn: !ImportValue ProxySecret, IAMAuth: DISABLED} VpcSubnetIds: Fn::Split: [",", "Fn::ImportValue": SubnetIds] ProxyTargetGroup: Type: Amazon::RDS::DBProxyTargetGroup Properties: DBProxyName: CanaryProxy TargetGroupName: default DBInstanceIdentifiers: - Fn::ImportValue: DBInstanceName DependsOn: DBProxy

For more information about the resources in this sample, see DBProxy and DBProxyTargetGroup.

For more information about resources that you can create using Amazon CloudFormation, see RDS resource type reference.