Resource: aws_db_proxy_endpoint

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

Example Usage

resource "aws_db_proxy_endpoint" "example" {
  db_proxy_name          = aws_db_proxy.test.name
  db_proxy_endpoint_name = "example"
  vpc_subnet_ids         = aws_subnet.test[*].id
  target_role            = "READ_ONLY"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import DB proxy endpoints using the DB-PROXY-NAME/DB-PROXY-ENDPOINT-NAME. For example:

import {
  to = aws_db_proxy_endpoint.example
  id = "example/example"
}

Using terraform import, import DB proxy endpoints using the DB-PROXY-NAME/DB-PROXY-ENDPOINT-NAME. For example:

% terraform import aws_db_proxy_endpoint.example example/example