diff --git a/infra/modules/service/main.tf b/infra/modules/service/main.tf index e735bef7c..147a1b495 100644 --- a/infra/modules/service/main.tf +++ b/infra/modules/service/main.tf @@ -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}" } ] ])