Skip to content

Commit

Permalink
Enable usage of flags related to instance mode and instance endpoints. (
Browse files Browse the repository at this point in the history
#12079) (#19988)

[upstream:cd75b5ffe373645fd4fa434b756bde89b4094740]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Oct 23, 2024
1 parent 1f48f77 commit 8ca256f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/12079.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
memorystore: added `mode` flag to `google_memorystore_instance`
```
35 changes: 35 additions & 0 deletions website/docs/r/memorystore_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ resource "google_memorystore_instance" "instance-full" {
}
engine_version = "VALKEY_7_2"
deletion_protection_enabled = false
mode = "CLUSTER"
persistence_config {
mode = "RDB"
rdb_config {
Expand Down Expand Up @@ -309,6 +310,14 @@ The following arguments are supported:
(Optional)
Optional. If set to true deletion of the instance will fail.

* `mode` -
(Optional)
Optional. Standalone or cluster.
Possible values:
CLUSTER
STANDALONE
Possible values are: `CLUSTER`, `STANDALONE`.

* `project` - (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.

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

* `endpoints` -
Endpoints for the instance.

* `psc_auto_connections` -
Output only. User inputs and resource details of the auto-created PSC connections.
Structure is [documented below](#nested_psc_auto_connections).
Expand Down Expand Up @@ -496,6 +508,29 @@ In addition to the arguments listed above, the following computed attributes are
Output only. The consumer network where the IP address resides, in the form of
projects/{project_id}/global/networks/{network_id}.

* `service_attachment` -
(Output)
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}.

* `psc_connection_status` -
(Output)
Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists.
Possible values:
ACTIVE
NOT_FOUND

* `connection_type` -
(Output)
Output Only. Type of a PSC Connection.
Possible values:
CONNECTION_TYPE_DISCOVERY
CONNECTION_TYPE_PRIMARY
CONNECTION_TYPE_READER

* `port` -
(Output)
Output only. Ports of the exposed endpoint.

## Timeouts

This resource provides the following
Expand Down

0 comments on commit 8ca256f

Please sign in to comment.