Skip to content

Commit

Permalink
fix: access cache module via index #530
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kay <[email protected]>
  • Loading branch information
npalm and kayman-mk authored Aug 22, 2022
1 parent 0256b90 commit d6f3875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ resource "aws_launch_template" "gitlab_runner_instance" {
### Create cache bucket
################################################################################
locals {
bucket_name = var.cache_bucket["create"] ? module.cache.bucket : lookup(var.cache_bucket, "bucket", "")
bucket_policy = var.cache_bucket["create"] ? module.cache.policy_arn : lookup(var.cache_bucket, "policy", "")
bucket_name = var.cache_bucket["create"] ? module.cache[0].bucket : lookup(var.cache_bucket, "bucket", "")
bucket_policy = var.cache_bucket["create"] ? module.cache[0].policy_arn : lookup(var.cache_bucket, "policy", "")
}

module "cache" {
Expand Down

0 comments on commit d6f3875

Please sign in to comment.