We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1264638 commit 32b5b54Copy full SHA for 32b5b54
modules/aws/volume-access/main.tf
@@ -4,7 +4,7 @@ locals {
4
account_ids = distinct(concat(var.account_ids, local.default_account_ids))
5
identifiers_list = [for account_id in local.account_ids : "arn:aws:iam::${account_id}:root"]
6
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}"])
+ bucket_path_list = distinct([for item in var.buckets : "arn:aws:s3:::${replace(item, "/(\\/|\\/\\*)+$/", "")}"])
8
tag_set = merge({ Vendor = "StreamNative", Module = "StreamNative Volume", SNVersion = var.sn_policy_version }, var.tags)
9
default_account_ids = compact([
10
# will add it in the next pr
0 commit comments