How to attach policy to the instance profile? #308
Replies: 8 comments
-
Not supported yet, but we are open for PR's. The request needs change to the Lambda that creates the instance. ` https://github.com/philips-labs/terraform-aws-github-runner/blob/80104c3f3fae344844f75bdb090a9c8ca179c9e7/modules/runners/lambdas/runners/src/scale-runners/runners.ts#L69 |
Beta Was this translation helpful? Give feedback.
-
@npalm @Eslamanwar Perhaps allowing a user to pass in an inline IAM policy document and/or a list of managed policy ARNs via variables.tf would make sense:
These could then be attached to the runner IAM role in policies-runner.tf? |
Beta Was this translation helpful? Give feedback.
-
I see two more logical options to me
The first one is a simple option to add and brings the required flexibility. |
Beta Was this translation helpful? Give feedback.
-
@npalm As to option 1, by export, do you mean a module |
Beta Was this translation helpful? Give feedback.
-
yep |
Beta Was this translation helpful? Give feedback.
-
Could we pass the preconfigured role to the terraform as an ARN? Then store than in a variable for scale-up lambda to use |
Beta Was this translation helpful? Give feedback.
-
@npalm @rlove @Eslamanwar See #361 for a potential solution. |
Beta Was this translation helpful? Give feedback.
-
@Eslamanwar @rlove @jpalomaki converted the issue ot a discussion |
Beta Was this translation helpful? Give feedback.
-
as a requirement to for example pull image from ECR
Beta Was this translation helpful? Give feedback.
All reactions