You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple runners deployed, in a docker-machine runner - multiple runner agents architecture.
I want to re-use the cache bucket (of a runner) created, with other runners, but currently there's no easy way yet to reference the docker-machine policy arn created within the module.cache child module.
Describe alternatives you've considered
Suggest a solution
Proposing to
Add module.cache.policy_arn as an output to outputs.tf file, i.e
output"runner_cache_bucket_users_policy_arn" {
description="ARN of the policy for users of the cache (bucket)."value=length(module.cache) >0? module.cache[0].policy_arn:null
}
Additional context
The text was updated successfully, but these errors were encountered:
Could you please give some more details? I use the same setup but have no need for that. Creating the cache separately should solve this problem, doesn't it?
module"cache" {
source="cattle-ops/gitlab-runner/aws//modules/cache"version="6.5.1"# ... other options left out for readability
}
module"gitlab_runner_1" {
for_each=data.aws_subnet.runnerssource="cattle-ops/gitlab-runner/aws"version="6.5.1"cache_shared=truecache_bucket={
create =false
policy ="${module.cache.policy_arn}"
bucket ="${module.cache.bucket}"
}
# ... other options left out for readability
}
module"gitlab_runner_2" {
for_each=data.aws_subnet.runnerssource="cattle-ops/gitlab-runner/aws"version="6.5.1"cache_shared=truecache_bucket={
create =false
policy ="${module.cache.policy_arn}"
bucket ="${module.cache.bucket}"
}
# ... other options left out for readability
}
Describe the solution you'd like
I have multiple runners deployed, in a docker-machine runner - multiple runner agents architecture.
I want to re-use the cache bucket (of a runner) created, with other runners, but currently there's no easy way yet to reference the docker-machine policy arn created within the
module.cache
child module.Describe alternatives you've considered
Suggest a solution
Proposing to
module.cache.policy_arn
as an output to outputs.tf file, i.eAdditional context
The text was updated successfully, but these errors were encountered: