Skip to content

Commit d6f3875

Browse files
npalmkayman-mk
andauthored
fix: access cache module via index #530
Co-authored-by: Matthias Kay <[email protected]>
1 parent 0256b90 commit d6f3875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ resource "aws_launch_template" "gitlab_runner_instance" {
293293
### Create cache bucket
294294
################################################################################
295295
locals {
296-
bucket_name = var.cache_bucket["create"] ? module.cache.bucket : lookup(var.cache_bucket, "bucket", "")
297-
bucket_policy = var.cache_bucket["create"] ? module.cache.policy_arn : lookup(var.cache_bucket, "policy", "")
296+
bucket_name = var.cache_bucket["create"] ? module.cache[0].bucket : lookup(var.cache_bucket, "bucket", "")
297+
bucket_policy = var.cache_bucket["create"] ? module.cache[0].policy_arn : lookup(var.cache_bucket, "policy", "")
298298
}
299299

300300
module "cache" {

0 commit comments

Comments
 (0)