Skip to content

Commit b6f5f3c

Browse files
committed
fix: make region a required input variable
1 parent cbd2fd6 commit b6f5f3c

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module "memorystore" {
5959
| read\_replicas\_mode | Read replicas mode. https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#readreplicasmode | `string` | `"READ_REPLICAS_DISABLED"` | no |
6060
| redis\_configs | The Redis configuration parameters. See [more details](https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Instance.FIELDS.redis_configs) | `map(any)` | `{}` | no |
6161
| redis\_version | The version of Redis software. | `string` | `null` | no |
62-
| region | The GCP region to use. | `string` | `null` | no |
62+
| region | The GCP region to use. | `string` | n/a | yes |
6363
| replica\_count | The number of replicas. | `number` | `null` | no |
6464
| reserved\_ip\_range | The CIDR range of internal addresses that are reserved for this instance. | `string` | `null` | no |
6565
| secondary\_ip\_range | Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance. | `string` | `null` | no |

metadata.display.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ spec:
7272
persistence_config:
7373
name: persistence_config
7474
title: Persistence Config
75-
project:
76-
name: project
77-
title: Project
75+
project_id:
76+
name: project_id
77+
title: Project Id
7878
read_replicas_mode:
7979
name: read_replicas_mode
8080
title: Read Replicas Mode
@@ -84,11 +84,20 @@ spec:
8484
redis_version:
8585
name: redis_version
8686
title: Redis Version
87+
enumValueLabels:
88+
- label: REDIS_5_0
89+
value: REDIS_5_0
90+
- label: REDIS_6_X
91+
value: REDIS_6_X
92+
- label: REDIS_7_0
93+
value: REDIS_7_0
8794
level: 1
95+
altDefaults:
96+
- type: ALTERNATE_TYPE_DC
97+
value: REDIS_7_0
8898
region:
8999
name: region
90100
title: Region
91-
level: 1
92101
replica_count:
93102
name: replica_count
94103
title: Replica Count
@@ -102,12 +111,12 @@ spec:
102111
tier:
103112
name: tier
104113
title: Tier
105-
level: 1
106114
enumValueLabels:
107115
- label: STANDARD_HA
108116
value: STANDARD_HA
109117
- label: BASIC
110118
value: BASIC
119+
level: 1
111120
transit_encryption_mode:
112121
name: transit_encryption_mode
113122
title: Transit Encryption Mode

metadata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ spec:
5959
- name: region
6060
description: The GCP region to use.
6161
varType: string
62+
required: true
6263
- name: name
6364
description: The ID of the instance or a fully qualified identifier for the instance.
6465
varType: string

variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ variable "project_id" {
2222
variable "region" {
2323
description = "The GCP region to use."
2424
type = string
25-
default = null
2625
}
2726

2827
variable "name" {

0 commit comments

Comments
 (0)