Skip to content

Commit

Permalink
fixed s3 bucket arn list
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Bakhmetev committed Sep 16, 2024
1 parent b46948c commit 042e4eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tf-aws-s3-bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ locals {

full_name = var.bucket_name != "" && !var.include_prefix ? var.bucket_name : "${module.name.id}-${var.bucket_name}"
bucket_name = var.include_account_id ? "${local.partition}-${local.full_name}" : local.full_name
bucket_id = join("", aws_s3_bucket.this.id)
bucket_id = join("", aws_s3_bucket.this[*].id)
bucket_arn = "arn:${local.partition}:s3:::${local.bucket_id}"
}

Expand Down
2 changes: 1 addition & 1 deletion tf-aws-s3-bucket/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ output "bucket_id" {
}

output "bucket_arn" {
value = join("", aws_s3_bucket.this.arn)
value = join("", aws_s3_bucket.this[*].arn)
description = "Bucket ARN"
}

0 comments on commit 042e4eb

Please sign in to comment.