Skip to content

Commit

Permalink
[fast follow] use bucket ids (#3284)
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren authored Dec 18, 2024
1 parent 3ecdc32 commit 8d28059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/modules/service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ locals {
],
[
for name, value in var.s3_buckets :
{ name : value.env_var, value : "s3://${aws_s3_bucket.s3_buckets[name].bucket_regional_domain_name}" }
{ name : value.env_var, value : "s3://${aws_s3_bucket.s3_buckets[name].id}" }
],
flatten([
for name, s3_bucket in var.s3_buckets : [
for paths in s3_bucket.paths : {
name = paths.env_var,
value = "s3://${aws_s3_bucket.s3_buckets[name].bucket_regional_domain_name}${paths.path}"
value = "s3://${aws_s3_bucket.s3_buckets[name].id}${paths.path}"
}
]
])
Expand Down

0 comments on commit 8d28059

Please sign in to comment.