Skip to content

Commit

Permalink
- common
Browse files Browse the repository at this point in the history
   -fix map() and list()
  • Loading branch information
badra001 committed Jul 29, 2022
1 parent eeabbc1 commit bcda729
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ This works with the Terraform AWS provider 4.x, released 2022-02.
- kms_key
- add variable multi_region

* 3.3.1 -- 2022-07-28
- common
-fix map() and list()
2 changes: 1 addition & 1 deletion common/kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "aws_kms_key" "key" {
local.base_tags,
var.tags,
local.enforced_tags,
map("Name", local.kms_key_name)
{ "Name" = local.kms_key_name }
)
}

Expand Down
4 changes: 2 additions & 2 deletions common/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ locals {
"variable" : "s3:x-amz-acl"
"values" : var.bucket_owner == "BucketOwnerPreferred" ? "bucket-owner-full-control" : ""
}
s3_bucket_conditions_list = list(local.condition_allowed_cidr, local.condition_allowed_endpoints)
s3_bucket_conditions_list = [local.condition_allowed_cidr, local.condition_allowed_endpoints]
s3_bucket_conditions = [for x in local.s3_bucket_conditions_list : x if length(x.values) > 0]

metadata_tags = merge(
Expand Down Expand Up @@ -85,7 +85,7 @@ resource "aws_s3_bucket" "this" {
local.base_tags,
var.tags,
local.enforced_tags,
map("Name", local.bucket_name)
{ "Name" = local.bucket_name }
)
}

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 = "3.3.0"
_module_version = "3.3.1"
}

0 comments on commit bcda729

Please sign in to comment.