AWS Amazon RDS Proxy

This page shows how to write Terraform and CloudFormation for Amazon RDS Proxy and write them securely.

aws_db_proxy (Terraform)

The Proxy in Amazon RDS can be configured in Terraform with the resource name aws_db_proxy. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconrraj-gautam/terraform
resource "aws_db_proxy" "pg-rds" {
  name                   = "pg-rds"
  debug_logging          = false
  engine_family          = "MYSQL"
  idle_client_timeout    = 1800
  require_tls            = true
github-iconsapphire-ko/aws-rds-proxy-test
resource "aws_db_proxy" "main" {
  name                   = var.name
  debug_logging          = false
  engine_family          = "MYSQL"
  idle_client_timeout    = 1800
  require_tls            = false

Parameters

Explanation in Terraform Registry

Provides an RDS DB proxy resource. For additional information, see the RDS User Guide.

AWS::RDS::DBProxy (CloudFormation)

The DBProxy in RDS can be configured in CloudFormation with the resource name AWS::RDS::DBProxy. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

The AWS::RDS::DBProxy resource creates or updates a DB proxy.

For information about RDS Proxy for Amazon RDS, see Managing Connections with Amazon RDS Proxy in the Amazon RDS User Guide.

For information about RDS Proxy for Amazon Aurora, see Managing Connections with Amazon RDS Proxy in the Amazon Aurora User Guide.

Note Limitations apply to RDS Proxy, including DB engine version limitations and AWS Region limitations. For information about limitations that apply to RDS Proxy for Amazon RDS, see Limitations for RDS Proxy in the Amazon RDS User Guide. For information about that apply to RDS Proxy for Amazon Aurora, see Limitations for RDS Proxy in the Amazon Aurora User Guide.

Frequently asked questions

What is AWS Amazon RDS Proxy?

AWS Amazon RDS Proxy is a resource for Amazon RDS of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon RDS Proxy?

For Terraform, the rraj-gautam/terraform and sapphire-ko/aws-rds-proxy-test source code examples are useful. See the Terraform Example section for further details.

security-icon

Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.