Docker Executor - S3 Cache using EC2 IAM Role #1011
naveenbr90
started this conversation in
General
Replies: 1 comment 2 replies
-
Sorry for my late reply. The cache is usually enabled this way: module "cache" {
source = "cattle-ops/gitlab-runner/aws//modules/cache"
version = "7.2.0"
cache_expiration_days = 7
cache_lifecycle_prefix = "" # module default is wrong
environment = var.environment
tags = local.tags
}
module "gitlab_runner_uncritical" {
source = "cattle-ops/gitlab-runner/aws"
version = "7.2.0"
runner_worker_cache = {
shared = true
create = false
policy = "${module.cache.policy_arn}"
bucket = "${module.cache.bucket}"
}
} So no need to configure policies manually. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ,
I am trying to enable cache directory using S3 bucket with iam role (EC2 Iam role ) in my runner container and my container is deployed in EC2 instance ..! I have given iam role permission to access the s3 bucket and also bucket policy to allow the iam role.
My runner is up and taking jobs and executing successfully but not capturing the cache in S3 bucket
Can Runner container know the Ec2 instance iam role when we give AuthenticationType as IAM or we should pass any variable to container with IAM ARN ?
Thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions