1
0
mirror of synced 2025-12-25 02:14:40 -05:00

Private IP support and test case

This commit is contained in:
Petri Autero
2019-02-08 11:46:17 +02:00
parent 296c9130a0
commit 633171571b
14 changed files with 306 additions and 52 deletions

View File

@@ -0,0 +1,18 @@
# MySQL Cloud SQL Private IP Example
This folder contains an example of how to use the [MySQL module](/modules/mysql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
[MySQL](https://cloud.google.com/sql/docs/mysql/) database instance with a private IP.
## How do you run this example?
To run this example, you need to:
1. Install [Terraform](https://www.terraform.io/).
1. Open up `vars.tf` and 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.
1. `terraform init`.
1. `terraform plan`.
1. 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](https://cloud.google.com/sql/docs/mysql/connect-admin-proxy).