Skip to content

Commit

Permalink
use try() in kms
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 24, 2022
1 parent 1bfde83 commit 982cc41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Provides standard and t26 S3 bucket construction.

## Version 2.x

This works with the Terraform AWS provider 3.x.

* 2.0 -- 20201104
- change to aws-s3
- create submodules `standard` and `title26`
Expand Down Expand Up @@ -73,3 +75,8 @@ Provides standard and t26 S3 bucket construction.
- add outputs
- s3_requested_bucket_name
- s3_module_settings

* 2.4.5 -- 2022-03-24
- kms_key
- wrap aws_kms_key resouce in try()

2 changes: 1 addition & 1 deletion common/kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# }
#
locals {
kms_key_arn = var.kms_key_arn == null ? aws_kms_key.key[0].arn : var.kms_key_arn
kms_key_arn = var.kms_key_arn == null ? try(aws_kms_key.key[0].arn, "") : var.kms_key_arn
kms_key_name = format("%s%s", local._prefixes["kms"], local.name)

kms_admin_root = [format("arn:%v:iam::%v:root", local.partition, local.account_id)]
Expand Down
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.4"
_module_version = "2.4.5"
}

0 comments on commit 982cc41

Please sign in to comment.