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
+16-18Lines changed: 16 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
[](https://gruntwork.io/?ref=repo_google_cloudsql)
2
2
[](http://github.com/gruntwork-io/terraform-google-sql/releases/latest)
*[root](https://github.com/gruntwork-io/terraform-google-sql/tree/master): The root folder contains an example of how
24
+
-[root](https://github.com/gruntwork-io/terraform-google-sql/tree/master): The root folder contains an example of how
24
25
to deploy a private PostgreSQL instance in Cloud SQL. See [postgres-private-ip](https://github.com/gruntwork-io/terraform-google-sql/blob/master/examples/postgres-private-ip)
25
26
for the documentation.
26
27
27
-
*[modules](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules): This folder contains the
28
+
-[modules](https://github.com/gruntwork-io/terraform-google-sql/tree/master/modules): This folder contains the
28
29
main implementation code for this Module, broken down into multiple standalone submodules.
29
30
30
31
The primary module is:
31
32
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
33
+
-[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
36
+
-[examples](https://github.com/gruntwork-io/terraform-google-sql/tree/master/examples): This folder contains
36
37
examples of how to use the submodules.
37
38
38
-
*[test](https://github.com/gruntwork-io/terraform-google-sql/tree/master/test): Automated tests for the submodules
39
+
-[test](https://github.com/gruntwork-io/terraform-google-sql/tree/master/test): Automated tests for the submodules
39
40
and examples.
40
41
41
42
## What is Cloud SQL?
42
43
43
-
Cloud SQL is Google's fully-managed database service that makes it easy to set up, maintain, manage, and administer
44
-
your relational databases on Google Cloud Platform. Cloud SQL automatically includes:
44
+
Cloud SQL is Google's fully-managed database service that makes it easy to set up, maintain, manage, and administer
45
+
your relational databases on Google Cloud Platform. Cloud SQL automatically includes:
45
46
46
-
* Data replication between multiple zones with automatic failover.
47
-
* Automated and on-demand backups, and point-in-time recovery.
48
-
* Data encryption on networks, database tables, temporary files, and backups.
49
-
* Secure external connections with the [Cloud SQL Proxy](https://cloud.google.com/sql/docs/mysql/sql-proxy) or with the SSL/TLS protocol.
47
+
- Data replication between multiple zones with automatic failover.
48
+
- Automated and on-demand backups, and point-in-time recovery.
49
+
- Data encryption on networks, database tables, temporary files, and backups.
50
+
- Secure external connections with the [Cloud SQL Proxy](https://cloud.google.com/sql/docs/mysql/sql-proxy) or with the SSL/TLS protocol.
50
51
51
52
You can learn more about Cloud SQL from [the official documentation](https://cloud.google.com/sql/docs/).
52
53
@@ -70,18 +71,16 @@ commercial support, send an email to
70
71
71
72
Gruntwork can help with:
72
73
73
-
* Setup, customization, and support for this Module.
74
-
* Modules and submodules for other types of infrastructure, such as VPCs, Docker clusters, databases, and continuous
74
+
- Setup, customization, and support for this Module.
75
+
- Modules and submodules for other types of infrastructure, such as VPCs, Docker clusters, databases, and continuous
75
76
integration.
76
-
* Modules and Submodules that meet compliance requirements, such as HIPAA.
77
-
* Consulting & Training on GCP, AWS, Terraform, and DevOps.
78
-
77
+
- Modules and Submodules that meet compliance requirements, such as HIPAA.
78
+
- Consulting & Training on GCP, AWS, Terraform, and DevOps.
79
79
80
80
## How do I contribute to this Module?
81
81
82
82
Contributions are very welcome! Check out the [Contribution Guidelines](https://github.com/gruntwork-io/terraform-google-sql/blob/master/CONTRIBUTING.md) for instructions.
83
83
84
-
85
84
## How is this Module versioned?
86
85
87
86
This Module follows the principles of [Semantic Versioning](http://semver.org/). You can find each new release, along
@@ -91,7 +90,6 @@ During initial development, the major version will be 0 (e.g., `0.x.y`), which i
91
90
stable API. Once we hit `1.0.0`, we will make every effort to maintain a backwards compatible API and use the MAJOR,
92
91
MINOR, and PATCH versions on each release to indicate any incompatibilities.
93
92
94
-
95
93
## License
96
94
97
95
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/client-certificate/variables.tf
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,21 @@
5
5
6
6
variable"project" {
7
7
description="The project ID to host the database in."
8
+
type=string
8
9
}
9
10
10
11
variable"region" {
11
12
description="The region to host the database in."
13
+
type=string
12
14
}
13
15
14
16
# Note, after a name db instance is used, it cannot be reused for up to one week.
15
17
variable"common_name" {
16
18
description="The common name to be used in the certificate to identify the client. Constrained to [a-zA-Z.-_ ]+. Changing this forces a new resource to be created."
19
+
type=string
17
20
}
18
21
19
22
variable"database_instance_name" {
20
23
description="The name of the Cloud SQL instance. Changing this forces a new resource to be created."
Copy file name to clipboardExpand all lines: examples/mysql-private-ip/outputs.tf
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,27 +4,27 @@
4
4
5
5
output"master_instance_name" {
6
6
description="The name of the database instance"
7
-
value="${module.mysql.master_instance_name}"
7
+
value=module.mysql.master_instance_name
8
8
}
9
9
10
10
output"master_ip_addresses" {
11
11
description="All IP addresses of the instance as list of maps, see https://www.terraform.io/docs/providers/google/r/sql_database_instance.html#ip_address-0-ip_address"
12
-
value="${module.mysql.master_ip_addresses}"
12
+
value=module.mysql.master_ip_addresses
13
13
}
14
14
15
15
output"master_private_ip" {
16
16
description="The private IPv4 address of the master instance."
17
-
value="${module.mysql.master_private_ip_address}"
17
+
value=module.mysql.master_private_ip_address
18
18
}
19
19
20
20
output"master_instance" {
21
21
description="Self link to the master instance"
22
-
value="${module.mysql.master_instance}"
22
+
value=module.mysql.master_instance
23
23
}
24
24
25
25
output"master_proxy_connection" {
26
26
description="Instance path for connecting with Cloud SQL Proxy. Read more at https://cloud.google.com/sql/docs/mysql/sql-proxy"
Copy file name to clipboardExpand all lines: examples/mysql-private-ip/variables.tf
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,45 +5,55 @@
5
5
6
6
variable"project" {
7
7
description="The project ID to host the database in."
8
+
type=string
8
9
}
9
10
10
11
variable"region" {
11
12
description="The region to host the database in."
13
+
type=string
12
14
}
13
15
14
16
# Note, after a name db instance is used, it cannot be reused for up to one week.
15
17
variable"name_prefix" {
16
18
description="The name prefix for the database instance. Will be appended with a random string. Use lowercase letters, numbers, and hyphens. Start with a letter."
19
+
type=string
17
20
}
18
21
19
22
variable"master_user_name" {
20
23
description="The username part for the default user credentials, i.e. 'master_user_name'@'master_user_host' IDENTIFIED BY 'master_user_password'. This should typically be set as the environment variable TF_VAR_master_user_name so you don't check it into source control."
24
+
type=string
21
25
}
22
26
23
27
variable"master_user_password" {
24
28
description="The password part for the default user credentials, i.e. 'master_user_name'@'master_user_host' IDENTIFIED BY 'master_user_password'. This should typically be set as the environment variable TF_VAR_master_user_password so you don't check it into source control."
description="The engine version of the database, e.g. `MYSQL_5_6` or `MYSQL_5_7`. See https://cloud.google.com/sql/docs/features for supported versions."
39
+
type=string
33
40
default="MYSQL_5_7"
34
41
}
35
42
36
43
variable"machine_type" {
37
44
description="The machine type to use, see https://cloud.google.com/sql/pricing for more details"
45
+
type=string
38
46
default="db-f1-micro"
39
47
}
40
48
41
49
variable"db_name" {
42
50
description="Name for the db"
51
+
type=string
43
52
default="default"
44
53
}
45
54
46
55
variable"name_override" {
47
56
description="You may optionally override the name_prefix + random string by specifying an override"
0 commit comments