Skip to content

Commit

Permalink
fix tag
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 11, 2021
1 parent a49e74a commit be82f0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ locals {
}

locals {
base_name = var.bucket_name
name = replace(var.bucket_name, local._prefixes["s3"], "")
bucket_name = format("%s%s", local._prefixes["s3"], local.name)

Expand Down Expand Up @@ -228,7 +229,7 @@ resource "aws_kms_key" "key" {
local.base_tags,
var.tags,
local.enforced_tags,
map("Name", local.bucket_name)
map("Name", local.kms_key_name)
)
}

Expand Down

0 comments on commit be82f0f

Please sign in to comment.