Skip to content

Commit

Permalink
kms_key: add multi_region
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 15, 2022
1 parent 9f5962d commit da551ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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 @@ -27,3 +27,9 @@ variable "use_kms_encryption" {
type = bool
default = true
}

variable "multi_region" {
description = "Flag to enable or disable the use of a multi-region KMS key (default=false)"
type = bool
default = false
}

0 comments on commit da551ff

Please sign in to comment.