Skip to content

Commit 8ca256f

Browse files
Enable usage of flags related to instance mode and instance endpoints. (#12079) (#19988)
[upstream:cd75b5ffe373645fd4fa434b756bde89b4094740] Signed-off-by: Modular Magician <[email protected]>
1 parent 1f48f77 commit 8ca256f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.changelog/12079.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
memorystore: added `mode` flag to `google_memorystore_instance`
3+
```

website/docs/r/memorystore_instance.html.markdown

+35
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ resource "google_memorystore_instance" "instance-full" {
114114
}
115115
engine_version = "VALKEY_7_2"
116116
deletion_protection_enabled = false
117+
mode = "CLUSTER"
117118
persistence_config {
118119
mode = "RDB"
119120
rdb_config {
@@ -309,6 +310,14 @@ The following arguments are supported:
309310
(Optional)
310311
Optional. If set to true deletion of the instance will fail.
311312

313+
* `mode` -
314+
(Optional)
315+
Optional. Standalone or cluster.
316+
Possible values:
317+
CLUSTER
318+
STANDALONE
319+
Possible values are: `CLUSTER`, `STANDALONE`.
320+
312321
* `project` - (Optional) The ID of the project in which the resource belongs.
313322
If it is not provided, the provider project is used.
314323

@@ -418,6 +427,9 @@ In addition to the arguments listed above, the following computed attributes are
418427
Represents configuration for nodes of the instance.
419428
Structure is [documented below](#nested_node_config).
420429

430+
* `endpoints` -
431+
Endpoints for the instance.
432+
421433
* `psc_auto_connections` -
422434
Output only. User inputs and resource details of the auto-created PSC connections.
423435
Structure is [documented below](#nested_psc_auto_connections).
@@ -496,6 +508,29 @@ In addition to the arguments listed above, the following computed attributes are
496508
Output only. The consumer network where the IP address resides, in the form of
497509
projects/{project_id}/global/networks/{network_id}.
498510

511+
* `service_attachment` -
512+
(Output)
513+
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
514+
515+
* `psc_connection_status` -
516+
(Output)
517+
Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists.
518+
Possible values:
519+
ACTIVE
520+
NOT_FOUND
521+
522+
* `connection_type` -
523+
(Output)
524+
Output Only. Type of a PSC Connection.
525+
Possible values:
526+
CONNECTION_TYPE_DISCOVERY
527+
CONNECTION_TYPE_PRIMARY
528+
CONNECTION_TYPE_READER
529+
530+
* `port` -
531+
(Output)
532+
Output only. Ports of the exposed endpoint.
533+
499534
## Timeouts
500535

501536
This resource provides the following

0 commit comments

Comments
 (0)