Skip to content

Commit

Permalink
Add persistence_iam_identity to Redis Instance (#3805)
Browse files Browse the repository at this point in the history
  • Loading branch information
upodroid authored Aug 3, 2020
1 parent a92d6fa commit 872cc5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions products/redis/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,21 @@ objects:
name: port
description: The port number of the exposed Redis endpoint.
output: true
- !ruby/object:Api::Type::String
name: persistenceIamIdentity
description: |
Output only. Cloud IAM identity used by import / export operations
to transfer data to/from Cloud Storage. Format is "serviceAccount:".
The value may change over time for a given instance so should be
checked before each import/export operation.
output: true
- !ruby/object:Api::Type::String
name: redisVersion
description: |
The version of Redis software. If not provided, latest supported
version will be used. Currently, the supported values are:
- REDIS_5_0 for Redis 5.0 compatibility
- REDIS_4_0 for Redis 4.0 compatibility
- REDIS_3_2 for Redis 3.2 compatibility
input: true
Expand Down
2 changes: 1 addition & 1 deletion templates/terraform/examples/redis_instance_full.tf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "google_redis_instance" "<%= ctx[:primary_resource_id] %>" {

authorized_network = data.google_compute_network.redis-network.id

redis_version = "REDIS_3_2"
redis_version = "REDIS_4_0"
display_name = "Terraform Test Instance"
reserved_ip_range = "192.168.0.0/29"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ resource "google_redis_instance" "<%= ctx[:primary_resource_id] %>" {
authorized_network = google_compute_network.network.id
connect_mode = "PRIVATE_SERVICE_ACCESS"

redis_version = "REDIS_3_2"
redis_version = "REDIS_4_0"
display_name = "Terraform Test Instance"

depends_on = [ google_service_networking_connection.private_service_connection ]
depends_on = [google_service_networking_connection.private_service_connection]

}

0 comments on commit 872cc5d

Please sign in to comment.