Skip to content

Commit b8bfd37

Browse files
fix: Add required argument to enable cross-region snapshot copy of KMS encrypted clusters (#37)
1 parent f2eb2b7 commit b8bfd37

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module "redshift" {
3737

3838
| Name | Version |
3939
|------|---------|
40-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.26 |
40+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.31 |
4141
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.25 |
4242

4343
## Providers
@@ -94,6 +94,7 @@ No modules.
9494
| <a name="input_skip_final_snapshot"></a> [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | If true (default), no snapshot will be made before deleting DB | `bool` | `true` | no |
9595
| <a name="input_snapshot_cluster_identifier"></a> [snapshot\_cluster\_identifier](#input\_snapshot\_cluster\_identifier) | (Optional) The name of the cluster the source snapshot was created from. | `string` | `null` | no |
9696
| <a name="input_snapshot_copy_destination_region"></a> [snapshot\_copy\_destination\_region](#input\_snapshot\_copy\_destination\_region) | (Optional) The name of the region where the snapshot will be copied. | `string` | `null` | no |
97+
| <a name="input_snapshot_copy_grant_name"></a> [snapshot\_copy\_grant\_name](#input\_snapshot\_copy\_grant\_name) | (Optional) The name of the grant in the destination region. Required if you have a KMS encrypted cluster. | `string` | `null` | no |
9798
| <a name="input_snapshot_identifier"></a> [snapshot\_identifier](#input\_snapshot\_identifier) | (Optional) The name of the snapshot from which to create the new cluster. | `string` | `null` | no |
9899
| <a name="input_subnets"></a> [subnets](#input\_subnets) | List of subnets DB should be available at. It might be one subnet. | `list(string)` | `[]` | no |
99100
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no |

examples/complete/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
1919

2020
| Name | Version |
2121
|------|---------|
22-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.26 |
22+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.31 |
2323
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.25 |
2424

2525
## Providers

examples/complete/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 0.12.26"
2+
required_version = ">= 0.12.31"
33

44
required_providers {
55
aws = ">= 2.25"

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ resource "aws_redshift_cluster" "this" {
5050
content {
5151
destination_region = var.snapshot_copy_destination_region
5252
retention_period = var.automated_snapshot_retention_period
53+
grant_name = var.snapshot_copy_grant_name
5354
}
5455
}
5556

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ variable "snapshot_copy_destination_region" {
162162
default = null
163163
}
164164

165+
variable "snapshot_copy_grant_name" {
166+
description = "(Optional) The name of the grant in the destination region. Required if you have a KMS encrypted cluster."
167+
type = string
168+
default = null
169+
}
170+
165171
variable "owner_account" {
166172
description = "(Optional) The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot."
167173
type = string

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 0.12.26"
2+
required_version = ">= 0.12.31"
33

44
required_providers {
55
aws = ">= 2.25"

0 commit comments

Comments
 (0)