Home › Forums › AWS › AWS Certified Cloud Practitioner › Can you associate AWS Access keys to a IAM Role? › Reply To: Can you associate AWS Access keys to a IAM Role?
-
Hi Neeraj,
Thank you for sending your inquiry.
To answer your question. Access keys cannot be directly associated with an IAM role. You can, however, create an IAM user first, associate access keys with that user, and then delegate the appropriate permissions to that user. The IAM Role lacks standard long-term credentials such as passwords and access keys. Instead, when you assume a role, it provides temporary security credentials for your role session.
For more details, you can visit these official documents:
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html
I hope this answers your query. For additional support, feel free to contact us. We are committed in helping you pass your AWS exam on your first attempt!
Regards,
Nikee @ Tutorials Dojo