You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,10 @@
3
3
4
4
# Cloud SQL Modules
5
5
6
+
<!-- NOTE: We use absolute linking here instead of relative linking, because the terraform registry does not support
7
+
relative linking correctly.
8
+
-->
9
+
6
10
This repo contains modules for running relational databases such as MySQL and PostgreSQL on
7
11
[Google Cloud Platform (GCP)](https://cloud.google.com/) using [Cloud SQL](https://cloud.google.com/sql/).
8
12
@@ -25,7 +29,7 @@ This repo has the following folder structure:
25
29
26
30
The primary module is:
27
31
28
-
*[cloud-sql](/modules/cloud-sql): Deploy a Cloud SQL [MySQL](https://cloud.google.com/sql/docs/mysql/) or
32
+
*[cloud-sql](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules/cloud-sql): Deploy a Cloud SQL [MySQL](https://cloud.google.com/sql/docs/mysql/) or
*[examples](https://github.com/gruntwork-io/terraform-google-sql/tree/master/examples): This folder contains
@@ -60,7 +64,7 @@ a version number bump.
60
64
61
65
## Who maintains this Module?
62
66
63
-
This Module and its Submodules are maintained by [Gruntwork](http://www.gruntwork.io/). Read the [Gruntwork Philosophy](/GRUNTWORK_PHILOSOPHY.md) document to learn more about how Gruntwork builds production grade infrastructure code. If you are looking for help or
67
+
This Module and its Submodules are maintained by [Gruntwork](http://www.gruntwork.io/). Read the [Gruntwork Philosophy](https://github.com/gruntwork-io/terraform-google-sql/blob/master/GRUNTWORK_PHILOSOPHY.md) document to learn more about how Gruntwork builds production grade infrastructure code. If you are looking for help or
Contributions are very welcome! Check out the [Contribution Guidelines](/CONTRIBUTING.md) for instructions.
82
+
Contributions are very welcome! Check out the [Contribution Guidelines](https://github.com/gruntwork-io/terraform-google-sql/blob/master/CONTRIBUTING.md) for instructions.
79
83
80
84
81
85
## How is this Module versioned?
82
86
83
87
This Module follows the principles of [Semantic Versioning](http://semver.org/). You can find each new release, along
84
-
with the changelog, in the [Releases Page](../../releases).
88
+
with the changelog, in the [Releases Page](https://github.com/gruntwork-io/terraform-google-sql/releases).
85
89
86
90
During initial development, the major version will be 0 (e.g., `0.x.y`), which indicates the code does not yet have a
87
91
stable API. Once we hit `1.0.0`, we will make every effort to maintain a backwards compatible API and use the MAJOR,
@@ -90,6 +94,6 @@ MINOR, and PATCH versions on each release to indicate any incompatibilities.
90
94
91
95
## License
92
96
93
-
Please see [LICENSE](/LICENSE) for how the code in this repo is licensed.
97
+
Please see [LICENSE](https://github.com/gruntwork-io/terraform-google-sql/blob/master/LICENSE.txt) for how the code in this repo is licensed.
Copy file name to clipboardExpand all lines: examples/mysql-private-ip/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# MySQL Cloud SQL Private IP Example
2
2
3
-
This folder contains an example of how to use the [Cloud SQL module](/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
3
+
This folder contains an example of how to use the [Cloud SQL module](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
4
4
[MySQL](https://cloud.google.com/sql/docs/mysql/) database instance with a [private IP address](https://cloud.google.com/sql/docs/mysql/private-ip).
5
5
6
6
## How do you run this example?
@@ -18,4 +18,4 @@ When the templates are applied, Terraform will output the IP address of the inst
18
18
and the instance path for [connecting using the Cloud SQL Proxy](https://cloud.google.com/sql/docs/mysql/connect-admin-proxy).
19
19
20
20
Note that you cannot connect to the private IP instance from outside Google Cloud Platform.
21
-
If you want to experiment with connecting from your own workstation, see the [public IP example](../mysql-public-ip)
21
+
If you want to experiment with connecting from your own workstation, see the [public IP example](https://github.com/gruntwork-io/terraform-google-sql/tree/master/examples/mysql-public-ip)
Copy file name to clipboardExpand all lines: examples/mysql-public-ip/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# MySQL Cloud SQL Public IP Example
2
2
3
-
This folder contains an example of how to use the [Cloud SQL module](/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
3
+
This folder contains an example of how to use the [Cloud SQL module](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
4
4
[MySQL](https://cloud.google.com/sql/docs/mysql/) database instance with a [public IP address](https://cloud.google.com/sql/docs/mysql/connect-external-app#appaccessIP).
Copy file name to clipboardExpand all lines: examples/mysql-replicas/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# MySQL Cloud SQL HA Example
2
2
3
-
This folder contains an example of how to use the [Cloud SQL module](/modules/cloud-sql) to create a [High Availability](https://cloud.google.com/sql/docs/mysql/configure-ha)[Google Cloud SQL](https://cloud.google.com/sql/)
3
+
<!-- NOTE: We use absolute linking here instead of relative linking, because the terraform registry does not support
4
+
relative linking correctly.
5
+
-->
6
+
7
+
This folder contains an example of how to use the [Cloud SQL module](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules/cloud-sql) to create a [High Availability](https://cloud.google.com/sql/docs/mysql/configure-ha)[Google Cloud SQL](https://cloud.google.com/sql/)
4
8
[MySQL](https://cloud.google.com/sql/docs/mysql/) database cluster with a [public IP](https://cloud.google.com/sql/docs/mysql/connect-external-app#appaccessIP) and failover and [read replicas](https://cloud.google.com/sql/docs/mysql/replication/).
Copy file name to clipboardExpand all lines: examples/postgres-private-ip/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# PostgreSQL Cloud SQL Private IP Example
2
2
3
-
This folder contains an example of how to use the [Cloud SQL module](/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
3
+
<!-- NOTE: We use absolute linking here instead of relative linking, because the terraform registry does not support
4
+
relative linking correctly.
5
+
-->
6
+
7
+
This folder contains an example of how to use the [Cloud SQL module](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
4
8
[PostgreSQL](https://cloud.google.com/sql/docs/postgres/) database instance with a [private IP address](https://cloud.google.com/sql/docs/postgres/private-ip).
5
9
6
10
## How do you run this example?
@@ -18,4 +22,4 @@ When the templates are applied, Terraform will output the IP address of the inst
18
22
and the instance path for [connecting using the Cloud SQL Proxy](https://cloud.google.com/sql/docs/postgres/sql-proxy).
19
23
20
24
Note that you cannot connect to the private IP instance from outside Google Cloud Platform.
21
-
If you want to experiment with connecting from your own workstation, see the [public IP example](../postgres-public-ip)
25
+
If you want to experiment with connecting from your own workstation, see the [public IP example](https://github.com/gruntwork-io/terraform-google-sql/tree/master/examples/postgres-public-ip)
Copy file name to clipboardExpand all lines: examples/postgres-public-ip/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# PostgreSQL Cloud SQL Public IP Example
2
2
3
-
This folder contains an example of how to use the [Cloud SQL module](/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
3
+
<!-- NOTE: We use absolute linking here instead of relative linking, because the terraform registry does not support
4
+
relative linking correctly.
5
+
-->
6
+
7
+
This folder contains an example of how to use the [Cloud SQL module](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules/cloud-sql) to create a [Google Cloud SQL](https://cloud.google.com/sql/)
4
8
[PostgreSQL](https://cloud.google.com/sql/docs/postgres/) database instance with a [public IP address](https://cloud.google.com/sql/docs/postgres/connect-external-app#appaccessIP).
Copy file name to clipboardExpand all lines: examples/postgres-replicas/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# PostgreSQL Cloud SQL HA Example
2
2
3
-
This folder contains an example of how to use the [Cloud SQL module](/modules/cloud-sql) to create a [High Availability](https://cloud.google.com/sql/docs/postgres/high-availability)[Google Cloud SQL](https://cloud.google.com/sql/)
3
+
<!-- NOTE: We use absolute linking here instead of relative linking, because the terraform registry does not support
4
+
relative linking correctly.
5
+
-->
6
+
7
+
This folder contains an example of how to use the [Cloud SQL module](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules/cloud-sql) to create a [High Availability](https://cloud.google.com/sql/docs/postgres/high-availability)[Google Cloud SQL](https://cloud.google.com/sql/)
4
8
[PostgreSQL](https://cloud.google.com/sql/docs/postgres/) database cluster with a [public IP address](https://cloud.google.com/sql/docs/postgres/connect-external-app#appaccessIP) and a [read replica](https://cloud.google.com/sql/docs/postgres/replication/).
Copy file name to clipboardExpand all lines: modules/cloud-sql/README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,22 @@
1
1
# Cloud SQL Module
2
2
3
+
<!-- NOTE: We use absolute linking here instead of relative linking, because the terraform registry does not support
4
+
relative linking correctly.
5
+
-->
6
+
3
7
This module creates a [Google Cloud SQL](https://cloud.google.com/sql/) cluster.
4
8
The cluster is managed by Google, automating backups, replication, patches, and updates.
5
9
6
10
This module helps you run [MySQL](https://cloud.google.com/sql/docs/mysql/) and [PostgreSQL](https://cloud.google.com/sql/docs/postgres/) databases in [Google Cloud](https://cloud.google.com/).
7
11
8
12
## How do you use this module?
9
13
10
-
See the [examples](/examples) folder for an example.
14
+
See the [examples](https://github.com/gruntwork-io/terraform-google-sql/tree/master/examples) folder for an example.
11
15
12
16
## How do you configure this module?
13
17
14
18
This module allows you to configure a number of parameters, such as high availability, backup windows, maintenance window and replicas.
15
-
For a list of all available variables and their descriptions, see [variables.tf](./variables.tf).
19
+
For a list of all available variables and their descriptions, see [variables.tf](https://github.com/gruntwork-io/terraform-google-sql/blob/master/modules/cloud-sql/variables.tf).
16
20
17
21
## How do you connect to the database?
18
22
@@ -92,7 +96,7 @@ See https://github.com/terraform-providers/terraform-provider-google/issues/2446
92
96
93
97
Retrieving and outputting distinct values from list of maps is not possible with resources using `count` prior to `terraform 0.12`.
94
98
Instead we have to output the values JSON encoded - for example `read_replica_server_ca_certs`. For full details of the outputs and
95
-
their format, see [outputs.tf](./outputs.tf).
99
+
their format, see [outputs.tf](https://github.com/gruntwork-io/terraform-google-sql/blob/master/modules/cloud-sql/outputs.tf).
96
100
97
101
See https://github.com/hashicorp/terraform/issues/17048
0 commit comments