* Bump tf to version 1.0 * Bump terraform-aws-ci * Mark private key output as sensitive * remove deprecated list() function
PostgreSQL Cloud SQL HA Example
This folder contains an example of how to use the Cloud SQL module to create a High Availability Google Cloud SQL PostgreSQL database cluster with a public IP address and a read replica.
How do you run this example?
To run this example, you need to:
- Install Terraform.
- Open up
variables.tfand set secrets at the top of the file as environment variables and fill in any other variables in the file that don't have defaults. terraform init.terraform plan.- If the plan looks good, run
terraform apply.
When the templates are applied, Terraform will output the IP address of the instance and the instance path for connecting using the Cloud SQL Proxy.