Skip to content

Commit

Permalink
- kms_key
Browse files Browse the repository at this point in the history
  - add variable multi_region
  • Loading branch information
badra001 committed Jul 15, 2022
1 parent 1a07844 commit ebe2ba2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ This works with the Terraform AWS provider 3.x.

* 2.4.7 -- 2022-06-01
- add bucket_domain_name and bucket_regional_domain_name to outputs.s3.tf

* 2.5.0 -- 2022-07-15
- kms_key
- add variable multi_region
1 change: 1 addition & 0 deletions common/kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "aws_kms_key" "key" {
description = "KMS CMK for S3 bucket ${local.name}"
enable_key_rotation = true
policy = data.aws_iam_policy_document.key_policy_combined.json
multi_region = var.multi_region

tags = merge(
local.base_tags,
Expand Down
6 changes: 6 additions & 0 deletions common/variables.kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ variable "kms_admin_roles" {
type = list(string)
default = []
}

variable "multi_region" {
description = "Flag to enable or disable the use of a multi-region KMS key (default=false)"
type = bool
default = false
}
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "2.4.7"
_module_version = "2.5.0"
}

0 comments on commit ebe2ba2

Please sign in to comment.