Skip to content

Commit c5c2ef8

Browse files
authored
Merge pull request #43 from girish332/SRE-5400
MAJOR: SRE-5400: updated default version for postgres to 17
2 parents c110c9c + d595474 commit c5c2ef8

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@ No modules.
3030

3131
## Inputs
3232

33-
| Name | Description | Type | Default | Required |
34-
|------|-------------|------|---------|:--------:|
35-
| <a name="input_name"></a> [name](#input\_name) | name of the cloud sql instance to create | `string` | n/a | yes |
36-
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | the project to create the sql instance in | `string` | n/a | yes |
37-
| <a name="input_activation_policy"></a> [activation\_policy](#input\_activation\_policy) | This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON\_DEMAND | `string` | `"ALWAYS"` | no |
38-
| <a name="input_backup_enabled"></a> [backup\_enabled](#input\_backup\_enabled) | True if backup configuration is enabled. | `bool` | `true` | no |
39-
| <a name="input_backup_point_in_time_recovery_enabled"></a> [backup\_point\_in\_time\_recovery\_enabled](#input\_backup\_point\_in\_time\_recovery\_enabled) | True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. | `bool` | `true` | no |
40-
| <a name="input_backup_start_time"></a> [backup\_start\_time](#input\_backup\_start\_time) | HH:MM format time indicating when backup configuration starts. | `string` | `"06:00"` | no |
41-
| <a name="input_cloudsql_availability_type"></a> [cloudsql\_availability\_type](#input\_cloudsql\_availability\_type) | The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). | `string` | `"REGIONAL"` | no |
42-
| <a name="input_database_flags"></a> [database\_flags](#input\_database\_flags) | List of Cloud SQL flags that are applied to the database server. See [more details](https://cloud.google.com/sql/docs/mysql/flags) | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `[]` | no |
43-
| <a name="input_db_name"></a> [db\_name](#input\_db\_name) | name of the database | `string` | `"doit"` | no |
44-
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | Set deletion protection on Cloud SQL instance. Setting this will protect instances from accidental deletion across all surfaces (API, gcloud, Cloud Console and Terraform). | `bool` | `true` | no |
45-
| <a name="input_disk_autoresize"></a> [disk\_autoresize](#input\_disk\_autoresize) | Enable disk to autoresize itself | `bool` | `true` | no |
46-
| <a name="input_disk_size"></a> [disk\_size](#input\_disk\_size) | size of the disk to use | `number` | `100` | no |
47-
| <a name="input_disk_type"></a> [disk\_type](#input\_disk\_type) | The disk type to use on the instance. should be either PD\_SSD or PD\_STANDARD | `string` | `"PD_SSD"` | no |
48-
| <a name="input_enable_private_ip"></a> [enable\_private\_ip](#input\_enable\_private\_ip) | Whether this instance should use a public or private ip address | `bool` | `false` | no |
49-
| <a name="input_labels"></a> [labels](#input\_labels) | labels to be attached to the resources created | `map(string)` | `{}` | no |
50-
| <a name="input_postgres_version"></a> [postgres\_version](#input\_postgres\_version) | Version of Postgres to install on the CloudSQL instance | `string` | `"POSTGRES_12"` | no |
51-
| <a name="input_private_network_id"></a> [private\_network\_id](#input\_private\_network\_id) | The VPC network from which the Cloud SQL instance is accessible for private IP | `string` | `""` | no |
52-
| <a name="input_region"></a> [region](#input\_region) | The region for the instance | `string` | `"us-east1"` | no |
53-
| <a name="input_require_ssl"></a> [require\_ssl](#input\_require\_ssl) | Set if SSL is required for the Cloud SQL instance. | `bool` | `false` | no |
33+
| Name | Description | Type | Default | Required |
34+
|------|-------------|------|-------------------------------------|:--------:|
35+
| <a name="input_name"></a> [name](#input\_name) | name of the cloud sql instance to create | `string` | n/a | yes |
36+
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | the project to create the sql instance in | `string` | n/a | yes |
37+
| <a name="input_activation_policy"></a> [activation\_policy](#input\_activation\_policy) | This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON\_DEMAND | `string` | `"ALWAYS"` | no |
38+
| <a name="input_backup_enabled"></a> [backup\_enabled](#input\_backup\_enabled) | True if backup configuration is enabled. | `bool` | `true` | no |
39+
| <a name="input_backup_point_in_time_recovery_enabled"></a> [backup\_point\_in\_time\_recovery\_enabled](#input\_backup\_point\_in\_time\_recovery\_enabled) | True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. | `bool` | `true` | no |
40+
| <a name="input_backup_start_time"></a> [backup\_start\_time](#input\_backup\_start\_time) | HH:MM format time indicating when backup configuration starts. | `string` | `"06:00"` | no |
41+
| <a name="input_cloudsql_availability_type"></a> [cloudsql\_availability\_type](#input\_cloudsql\_availability\_type) | The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). | `string` | `"REGIONAL"` | no |
42+
| <a name="input_database_flags"></a> [database\_flags](#input\_database\_flags) | List of Cloud SQL flags that are applied to the database server. See [more details](https://cloud.google.com/sql/docs/mysql/flags) | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `[]` | no |
43+
| <a name="input_db_name"></a> [db\_name](#input\_db\_name) | name of the database | `string` | `"doit"` | no |
44+
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | Set deletion protection on Cloud SQL instance. Setting this will protect instances from accidental deletion across all surfaces (API, gcloud, Cloud Console and Terraform). | `bool` | `true` | no |
45+
| <a name="input_disk_autoresize"></a> [disk\_autoresize](#input\_disk\_autoresize) | Enable disk to autoresize itself | `bool` | `true` | no |
46+
| <a name="input_disk_size"></a> [disk\_size](#input\_disk\_size) | size of the disk to use | `number` | `100` | no |
47+
| <a name="input_disk_type"></a> [disk\_type](#input\_disk\_type) | The disk type to use on the instance. should be either PD\_SSD or PD\_STANDARD | `string` | `"PD_SSD"` | no |
48+
| <a name="input_enable_private_ip"></a> [enable\_private\_ip](#input\_enable\_private\_ip) | Whether this instance should use a public or private ip address | `bool` | `false` | no |
49+
| <a name="input_labels"></a> [labels](#input\_labels) | labels to be attached to the resources created | `map(string)` | `{}` | no |
50+
| <a name="input_postgres_version"></a> [postgres\_version](#input\_postgres\_version) | Version of Postgres to install on the CloudSQL instance | `string` | `"POSTGRES_17"` | no |
51+
| <a name="input_private_network_id"></a> [private\_network\_id](#input\_private\_network\_id) | The VPC network from which the Cloud SQL instance is accessible for private IP | `string` | `""` | no |
52+
| <a name="input_region"></a> [region](#input\_region) | The region for the instance | `string` | `"us-east1"` | no |
53+
| <a name="input_require_ssl"></a> [require\_ssl](#input\_require\_ssl) | Set if SSL is required for the Cloud SQL instance. | `bool` | `false` | no |
5454
| <a name="input_ssl_mode"></a> [ssl\_mode](#input\_ssl\_mode) | Set up the SSL mode. If SSL is required, this value is TRUSTED\_CLIENT\_CERTIFICATE\_REQUIRED. | `string` | `"ALLOW_UNENCRYPTED_AND_ENCRYPTED"` | no |
55-
| <a name="input_tier"></a> [tier](#input\_tier) | the machine type to use for the sql instance | `string` | `"db-custom-1-3840"` | no |
55+
| <a name="input_tier"></a> [tier](#input\_tier) | the machine type to use for the sql instance | `string` | `"db-custom-1-3840"` | no |
5656

5757
## Outputs
5858

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ variable "ssl_mode" {
122122
variable "postgres_version" {
123123
type = string
124124
description = "Version of Postgres to install on the CloudSQL instance"
125-
default = "POSTGRES_12"
125+
default = "POSTGRES_17"
126126
}

0 commit comments

Comments
 (0)