Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(TPG >=5.33)!: zone_distribution_config force recreation #222

Merged
merged 6 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/redis-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module "redis_cluster" {
| service\_connection\_policies | The Service Connection Policies to create | <pre>map(object({<br> description = optional(string)<br> network_name = string<br> network_project = string<br> subnet_names = list(string)<br> limit = optional(number)<br> labels = optional(map(string), {})<br> }))</pre> | `{}` | no |
| shard\_count | Required. Number of shards for the Redis cluster. The minimum number of shards in a Memorystore cluster is 3 shards | `number` | `3` | no |
| transit\_encryption\_mode | The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value is TRANSIT\_ENCRYPTION\_MODE\_DISABLED. Possible values are: TRANSIT\_ENCRYPTION\_MODE\_UNSPECIFIED, TRANSIT\_ENCRYPTION\_MODE\_DISABLED, TRANSIT\_ENCRYPTION\_MODE\_SERVER\_AUTHENTICATION | `string` | `"TRANSIT_ENCRYPTION_MODE_DISABLED"` | no |
| zone\_distribution\_config\_mode | The mode for zone distribution for Memorystore Redis cluster (Immutable). If not provided, MULTI\_ZONE will be used as default value. Possible values are: MULTI\_ZONE, SINGLE\_ZONE | `string` | `"MULTI_ZONE"` | no |

## Outputs

Expand Down
4 changes: 4 additions & 0 deletions modules/redis-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ resource "google_redis_cluster" "redis_cluster" {
}
}

zone_distribution_config {
lanandra marked this conversation as resolved.
Show resolved Hide resolved
mode = var.zone_distribution_config_mode
}

depends_on = [
google_network_connectivity_service_connection_policy.service_connection_policies,
module.enable_apis,
Expand Down
6 changes: 6 additions & 0 deletions modules/redis-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,9 @@ variable "redis_configs" {
})
default = null
}

variable "zone_distribution_config_mode" {
description = "The mode for zone distribution for Memorystore Redis cluster (Immutable). If not provided, MULTI_ZONE will be used as default value. Possible values are: MULTI_ZONE, SINGLE_ZONE"
type = string
default = "MULTI_ZONE"
}