Skip to content

Commit

Permalink
feat!: Updated CMEK attribute (#103)
Browse files Browse the repository at this point in the history
* Updated CMEK attribute

* Updated minimum provider version to 4.28 where CMEK attributed was added

Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
  • Loading branch information
ramneekkh and bharathkkb committed Sep 21, 2022
1 parent ed53377 commit 3fbeb7e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module "memorystore" {
| auth\_enabled | Indicates whether OSS Redis AUTH is enabled for the instance. If set to true AUTH is enabled on the instance. | `bool` | `false` | no |
| authorized\_network | The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used. | `string` | `null` | no |
| connect\_mode | The connection mode of the Redis instance. Can be either DIRECT\_PEERING or PRIVATE\_SERVICE\_ACCESS. The default connect mode if not provided is DIRECT\_PEERING. | `string` | `null` | no |
| customer\_managed\_key | Default encryption key to apply to the Redis instance. Defaults to null (Google-managed). | `string` | `null` | no |
| display\_name | An arbitrary and optional user-provided name for the instance. | `string` | `null` | no |
| enable\_apis | Flag for enabling redis.googleapis.com in your project | `bool` | `true` | no |
| labels | The resource labels to represent user provided metadata. | `map(string)` | `null` | no |
Expand Down
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ resource "google_redis_instance" "default" {
location_id = var.location_id
alternative_location_id = var.alternative_location_id

authorized_network = var.authorized_network
authorized_network = var.authorized_network
customer_managed_key = var.customer_managed_key

redis_version = var.redis_version
redis_configs = var.redis_configs
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,10 @@ variable "maintenance_policy" {
})
default = null
}


variable "customer_managed_key" {
description = "Default encryption key to apply to the Redis instance. Defaults to null (Google-managed)."
type = string
default = null
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = ">= 4.10.0, < 5.0"
version = ">= 4.28.0, < 5.0"
}
}

Expand Down

0 comments on commit 3fbeb7e

Please sign in to comment.