Skip to content

Commit c098325

Browse files
fix: changed the following name of input variable in fscloud submodule: pg_version -> postgresql_version(#660)
1 parent 7753fe3 commit c098325

File tree

13 files changed

+41
-36
lines changed

13 files changed

+41
-36
lines changed

examples/backup/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "postgresql_db" {
1515
source = "../.."
1616
resource_group_id = module.resource_group.resource_group_id
1717
name = "${var.prefix}-postgres"
18-
postgresql_version = var.pg_version
18+
postgresql_version = var.postgresql_version
1919
region = var.region
2020
tags = var.resource_tags
2121
access_tags = var.access_tags
@@ -35,7 +35,7 @@ module "restored_icd_postgresql" {
3535
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
3636
resource_group_id = module.resource_group.resource_group_id
3737
name = "${var.prefix}-postgres-restored"
38-
postgresql_version = var.pg_version
38+
postgresql_version = var.postgresql_version
3939
region = var.region
4040
tags = var.resource_tags
4141
access_tags = var.access_tags

examples/backup/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variable "prefix" {
1414
description = "Prefix to append to all resources created by this example"
1515
}
1616

17-
variable "pg_version" {
17+
variable "postgresql_version" {
1818
description = "Version of the postgresql instance. If no value passed, the current ICD preferred version is used."
1919
type = string
2020
default = null

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module "icd_postgresql" {
109109
resource_group_id = module.resource_group.resource_group_id
110110
name = "${var.prefix}-postgres"
111111
region = var.region
112-
postgresql_version = var.pg_version
112+
postgresql_version = var.postgresql_version
113113
admin_pass = var.admin_pass
114114
users = var.users
115115
# Example of how to use different KMS keys for data and backups

examples/complete/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variable "access_tags" {
3232
default = []
3333
}
3434

35-
variable "pg_version" {
35+
variable "postgresql_version" {
3636
description = "Version of the PostgreSQL instance. If no value is passed, the current preferred version of IBM Cloud Databases is used."
3737
type = string
3838
default = null

examples/fscloud/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module "postgresql_db" {
6161
resource_group_id = module.resource_group.resource_group_id
6262
name = "${var.prefix}-postgres"
6363
region = var.region
64-
pg_version = var.pg_version
64+
postgresql_version = var.postgresql_version
6565
kms_key_crn = var.kms_key_crn
6666
backup_encryption_key_crn = var.backup_encryption_key_crn
6767
backup_crn = var.backup_crn

examples/fscloud/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variable "access_tags" {
3232
default = []
3333
}
3434

35-
variable "pg_version" {
35+
variable "postgresql_version" {
3636
description = "Version of the PostgreSQL instance. If no value is passed, the current preferred version of IBM Cloud Databases is used."
3737
type = string
3838
default = null

examples/pitr/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module "postgresql_db_pitr" {
2626
cpu_count = 0
2727
member_host_flavor = "multitenant"
2828
members = var.members
29-
postgresql_version = var.pg_version
29+
postgresql_version = var.postgresql_version
3030
pitr_id = var.pitr_id
3131
pitr_time = var.pitr_time
3232
}

examples/pitr/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ variable "resource_group" {
2020
default = null
2121
}
2222

23-
variable "pg_version" {
23+
variable "postgresql_version" {
2424
description = "Version of the postgresql instance. If no value passed, the current ICD preferred version is used."
2525
type = string
2626
default = null

modules/fscloud/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ No resources.
4242
| <a name="input_member_memory_mb"></a> [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-resources-scaling) | `number` | `4096` | no |
4343
| <a name="input_members"></a> [members](#input\_members) | Allocated number of members. Members can be scaled up but not down. | `number` | `2` | no |
4444
| <a name="input_name"></a> [name](#input\_name) | The name to give the Postgresql instance. | `string` | n/a | yes |
45-
| <a name="input_pg_version"></a> [pg\_version](#input\_pg\_version) | Version of the PostgreSQL instance. If no value is passed, the current preferred version of IBM Cloud Databases is used. | `string` | `null` | no |
45+
| <a name="input_postgresql_version"></a> [postgresql\_version](#input\_postgresql\_version) | Version of the PostgreSQL instance. If no value is passed, the current preferred version of IBM Cloud Databases is used. | `string` | `null` | no |
4646
| <a name="input_region"></a> [region](#input\_region) | The region where you want to deploy your instance. Must be the same region as the Hyper Protect Crypto Services instance. | `string` | `"us-south"` | no |
4747
| <a name="input_remote_leader_crn"></a> [remote\_leader\_crn](#input\_remote\_leader\_crn) | A CRN of the leader database to make the replica(read-only) deployment. The leader database is created by a database deployment with the same service ID. A read-only replica is set up to replicate all of your data from the leader deployment to the replica deployment by using asynchronous replication. For more information, see https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-read-only-replicas | `string` | `null` | no |
4848
| <a name="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id) | The resource group ID where the PostgreSQL instance will be created. | `string` | n/a | yes |

modules/fscloud/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module "postgresql_db" {
66
remote_leader_crn = var.remote_leader_crn
77
skip_iam_authorization_policy = var.skip_iam_authorization_policy
88
service_endpoints = "private"
9-
postgresql_version = var.pg_version
9+
postgresql_version = var.postgresql_version
1010
use_ibm_owned_encryption_key = var.use_ibm_owned_encryption_key
1111
use_same_kms_key_for_backups = var.use_same_kms_key_for_backups
1212
use_default_backup_encryption_key = var.use_default_backup_encryption_key

0 commit comments

Comments
 (0)