Skip to content

Commit 77c0207

Browse files
authored
feat(TPG>=6.0)!: Added deletion protection support in Redis cluster (#233)
1 parent 1838302 commit 77c0207

File tree

30 files changed

+94
-60
lines changed

30 files changed

+94
-60
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ A Terraform module for creating a fully functional Google Memorystore Redis inst
55

66
## Compatibility
77
This module is meant for use with Terraform 1.3+ and tested using Terraform 1.3+. If you find incompatibilities using Terraform >=1.3, please open an issue.
8-
If you haven't
9-
[upgraded](https://www.terraform.io/upgrade-guides/0-13.html) and need a Terraform
10-
0.12.x-compatible version of this module, the last released version
11-
intended for Terraform 0.12.x is [v2.0.0](https://registry.terraform.io/modules/terraform-google-modules/-memorystore/google/v2.0.0).
8+
9+
If you haven't [upgraded](https://www.terraform.io/upgrade-guides/0-13.html) and need a Terraform
10+
0.12.x-compatible version of this module, the last released version intended for Terraform 0.12.x is [v2.0.0](https://registry.terraform.io/modules/terraform-google-modules/-memorystore/google/v2.0.0).
1211

1312
## Version
1413

15-
Current version is 8.0. Upgrade guides:
14+
Current version is 11.0. Upgrade guides:
1615

1716
- [7.X -> 8.0](/docs/upgrading_to_v8.0.md)
17+
- [8.X -> 9.0](/docs/upgrading_to_v9.0.md)
18+
- [10.X -> 11.0](/docs/upgrading_to_v11.0.md)
1819

1920
## Usage
2021

@@ -23,7 +24,7 @@ Check the [examples/](./examples/) directory for more.
2324
```hcl
2425
module "memorystore" {
2526
source = "terraform-google-modules/memorystore/google"
26-
version = "~> 10.0"
27+
version = "~> 11.0"
2728
2829
name = "memorystore"
2930
project = "memorystore"

docs/upgrading_to_v11.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Upgrading to v11.0
2+
3+
The v11.0 release contains backwards-incompatible changes.
4+
5+
## Minimum Provider Version
6+
This update requires upgrading the terraform provider version to `6+` for redis cluster sub-module.
7+
8+
## Parameter deletion_protection_enabled default value in redis cluster
9+
Added support for [deletion_protection](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/version_6_upgrade#resource-google_redis_cluster). Default value for `deletion_protection_enabled` is set to `true`.

examples/basic/memorystore.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
module "memorystore" {
1818
source = "terraform-google-modules/memorystore/google"
19-
version = "~> 9.0"
19+
version = "~> 11.0"
2020

2121
name = "memorystore"
2222
project = "memorystore"

examples/memcache/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616

1717
module "private-service-access" {
1818
source = "GoogleCloudPlatform/sql-db/google//modules/private_service_access"
19-
version = "~> 20.0"
19+
version = "~> 22.0"
2020
project_id = var.project_id
2121
vpc_network = module.test-vpc-module.network_name
2222
depends_on = [
@@ -26,7 +26,7 @@ module "private-service-access" {
2626

2727
module "memcache" {
2828
source = "terraform-google-modules/memorystore/google//modules/memcache"
29-
version = "~> 9.0"
29+
version = "~> 11.0"
3030

3131
name = "example-memcache"
3232
project = var.project_id

examples/memcache/network.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2022 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

examples/memcache/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

examples/memcache/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

examples/minimal/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616

1717
module "memstore" {
1818
source = "terraform-google-modules/memorystore/google"
19-
version = "~> 9.0"
19+
version = "~> 11.0"
2020

2121
name = "test-minimal"
2222
project = var.project_id

examples/minimal/network.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2022 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

examples/minimal/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)