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
Using a role is best practice and gives the following benefits over an IAM user:
We can set the role up so only Github (hopefully at the project/repo level) can assume it, hopefully not any random person who has stolen the credentials
When the role is assumed, the credentials have an expiry so the impact is less when leaked
The auditing is easier, a session name is provided when assuming the role so you know which system is doing the assuming
That's off the top of my head so it might not be 100% correct but I think the gist is correct.
NoxHarmonium
changed the title
Use IAM role rather than IAM user for build job
Assume IAM role rather than use hardcoded IAM user credentials for build job
Sep 19, 2022
Using a role is best practice and gives the following benefits over an IAM user:
That's off the top of my head so it might not be 100% correct but I think the gist is correct.
See also:
https://github.com/aws-actions/configure-aws-credentials#credentials
https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
The text was updated successfully, but these errors were encountered: