

# RDS Proxy를 AWS CloudFormation에서 사용
<a name="rds-proxy-cfn"></a>

 RDS Proxy를 AWS CloudFormation에서 사용할 수 있습니다. 이렇게 하면 관련 리소스 그룹을 생성하는 데 도움이 됩니다. 이러한 그룹에는 새로 생성된 Amazon RDS DB 인스턴스에 연결할 수 있는 프록시가 포함될 수 있습니다. CloudFormation의 RDS Proxy 지원에는 두 가지 새로운 레지스트리 유형인 `DBProxy` 및 `DBProxyTargetGroup`이 포함됩니다 

 다음 목록은 RDS Proxy에 대한 샘플 CloudFormation 템플릿을 보여줍니다.

```
Resources:
 DBProxy:
   Type: AWS::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: AWS::RDS::DBProxyTargetGroup
   Properties:
     DBProxyName: CanaryProxy
     TargetGroupName: default
     DBInstanceIdentifiers: 
       - Fn::ImportValue: DBInstanceName
   DependsOn: DBProxy
```

 이 샘플의 리소스에 대한 자세한 내용은 [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxy.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxy.html) 및 [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html)을 참조하세요.

 CloudFormation을 사용하여 생성할 수 있는 리소스에 대한 자세한 내용은 [RDS 리소스 유형 참조](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_RDS.html)를 확인하세요.