rds-db-proxy
cloudposse/rds-db-proxy/aws
Terraform module to provision an Amazon RDS Proxy
Terraform module to provision an Amazon RDS Proxy for MySQL or Postgres. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test. ```hcl module "vpc" { source = "cloudposse/vpc/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" cidr_block = "172.16.0.0/16" context = module.this.context } module "subnets" { source = "clo
| Name | Type | Description | Default |
|---|---|---|---|
| vpc_security_group_ids | set(string) | One or more VPC security group IDs to associate with the proxy | required |
| vpc_subnet_ids | set(string) | One or more VPC subnet IDs to associate with the proxy | required |
| auth | list(object({ auth_scheme | Configuration blocks with authorization mechanisms to connect to the associated | required |
| additional_tag_map | map(string) | Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add | {} |
| require_tls | bool | A Boolean parameter that specifies whether Transport Layer Security (TLS) encryp | false |
| db_instance_identifier | string | DB instance identifier. Either `db_instance_identifier` or `db_cluster_identifie | null |
| proxy_update_timeout | string | Proxy update timeout | "30m" |
| engine_family | string | The kinds of databases that the proxy can connect to. This value determines whic | "MYSQL" |
| regex_replace_chars | string | Terraform regular expression (regex) string. Characters matching the regex will | null |
| label_key_case | string | Controls the letter case of the `tags` keys (label names) for tags generated by | null |
| label_value_case | string | Controls the letter case of ID elements (labels) as included in `id`, set as tag | null |
| descriptor_formats | any | Describe additional descriptors to be output in the `descriptors` output map. Ma | {} |
| enabled | bool | Set to false to prevent the module from creating any resources | null |
| namespace | string | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' | null |
| stage | string | ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu | null |
| connection_borrow_timeout | number | The number of seconds for a proxy to wait for a connection to become available i | 120 |
| init_query | string | One or more SQL statements for the proxy to run when opening each new database c | null |
| max_connections_percent | number | The maximum size of the connection pool for each target in a target group | 100 |
| max_idle_connections_percent | number | Controls how actively the proxy closes idle database connections in the connecti | 50 |
| iam_role_attributes | list(string) | Additional attributes to add to the ID of the IAM role that the proxy uses to ac | null |
| attributes | list(string) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, | [] |
| id_length_limit | number | Limit `id` to this many characters (minimum 6). Set to `0` for unlimited length. | null |
| idle_client_timeout | number | The number of seconds that a connection to the proxy can be inactive before the | 1800 |
proxy_endpoint — Proxy endpointproxy_target_port — Port for the target RDS DB instance or Aurora DB clusterproxy_target_target_arn — Amazon Resource Name (ARN) for the DB instance or DB clusterproxy_target_tracked_cluster_id — DB Cluster identifier for the DB instance target. Not returned unless manually importing an `RDS_INSproxy_target_type — Type of target. e.g. `RDS_INSTANCE` or `TRACKED_CLUSTER`proxy_id — Proxy IDproxy_target_endpoint — Hostname for the target RDS DB Instance. Only returned for `RDS_INSTANCE` typeproxy_target_id — Identifier of `db_proxy_name`, `target_group_name`, `target type` (e.g. `RDS_INSTANCE` or `TRACKED_Cproxy_target_rds_resource_id — Identifier representing the DB instance or DB cluster targetproxy_default_target_group_arn — The Amazon Resource Name (ARN) representing the default target groupproxy_default_target_group_name — The name of the default target groupproxy_iam_role_arn — The ARN of the IAM role that the proxy uses to access secrets in AWS Secrets Managerproxy_arn — Proxy ARNAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Creates a Cloud SQL database instance
Terraform module to deploy landing zone subscriptions (and much more) in Azure