Skip to content

Commit

Permalink
Include name of bucket as label for cost analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
naseemkullah committed Nov 7, 2019
1 parent 57a9ea2 commit 3e7b600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "google_storage_bucket" "buckets" {
project = var.project_id
location = var.location
storage_class = var.storage_class
labels = var.labels
labels = merge(var.labels, { name = "${local.prefix}${lower(element(var.names, count.index))}" })
force_destroy = lookup(
var.force_destroy,
lower(element(var.names, count.index)),
Expand Down

0 comments on commit 3e7b600

Please sign in to comment.