Skip to content

Commit b52116b

Browse files
committed
Fix bucket name for tag binding
1 parent 8483e11 commit b52116b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres
77
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
# [0.7.1] - 2023-08-09
10+
11+
[Compare with previous version](https://github.com/sparkfabrik/terraform-google-gcp-application-bucket-creation-helper/compare/0.7.0...0.7.1)
12+
13+
- Fix bucket name for tag binding, it was missing the random suffix if present.
14+
915
# [0.7.0] - 2023-08-08
1016

1117
[Compare with previous version](https://github.com/sparkfabrik/terraform-google-gcp-application-bucket-creation-helper/compare/0.6.1...0.7.0)

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ locals {
7474
# Add the global tags to the buckets we want to tag and populate bucket location.
7575
list_of_buckets_to_be_tagged = [
7676
for bucket in var.buckets_list : {
77-
bucket_name = bucket.name
77+
bucket_name = local.generated_bucket_names[bucket.name]
7878
bucket_location = bucket.location != null ? bucket.location : local.default_region
7979
# If the bucket has no tags, we add the global tags, otherwise we use the bucket tags.
8080
tag_list = length(bucket.tag_list) > 0 ? bucket.tag_list : var.global_tags

0 commit comments

Comments
 (0)