Replies: 1 comment
-
|
The grant principal should be a role in all cases I could think of. So you might be able to just cast it to a role and use addManagedPolicy. If not, I'd try I recommend you consider aws-actions/configure-aws-credentials instead for more fine-grained control of which repos and branches can assume the role. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have found how to add inline policy statements to a runner's role, eg:
But, I want to add an AWS managed policy now. How can I do this?
I can get a reference to the policy, like this:
I'm just not sure how to connect it to the role that the runner uses. I think if I could get a reference to the
awsiam.Role, then I could callrole.AddManagedPolicy(policy).Thanks!
Beta Was this translation helpful? Give feedback.
All reactions