Using your runner's IRSA IAM role within a workflow job container #798
toast-gear
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
Had same problem, your solution works indeed. However, based on official docs adding |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A correctly configured IRSA setup will bootstrap your runners IAM role onto the runner automatically, at this point your runner will have the permissions of the associated IAM role. You may want to bring those permissions into a conatiner defined in a workflow, for example:
With this pipeline, our defined container
amazon/aws-cli
won't have any AWS rights as the bootstrapped token is on the runner, not in theamazon/aws-cli:latest
container. As a result of this ouraws sts
call would fail. In order to bring our runner's bootstrapped IAM role into our container we must manually port the environment variables IRSA creates as well as mount of web identity token into our container:Beta Was this translation helpful? Give feedback.
All reactions