Skip to content

Commit 32b5b54

Browse files
authored
fix: removed slash suffix for volume access module (#124)
1 parent 1264638 commit 32b5b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/aws/volume-access/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ locals {
44
account_ids = distinct(concat(var.account_ids, local.default_account_ids))
55
identifiers_list = [for account_id in local.account_ids : "arn:aws:iam::${account_id}:root"]
66
bucket_list = distinct([for item in var.buckets : "arn:aws:s3:::${split("/", item)[0]}"])
7-
bucket_path_list = distinct([for item in var.buckets : "arn:aws:s3:::${item}"])
7+
bucket_path_list = distinct([for item in var.buckets : "arn:aws:s3:::${replace(item, "/(\\/|\\/\\*)+$/", "")}"])
88
tag_set = merge({ Vendor = "StreamNative", Module = "StreamNative Volume", SNVersion = var.sn_policy_version }, var.tags)
99
default_account_ids = compact([
1010
# will add it in the next pr

0 commit comments

Comments
 (0)