Amazon Web Services (AWS) - Attach a Role to an Instance Profile using the AWS CLI

by
Jeremy Canfield |
Updated: January 26 2024
| Amazon Web Services (AWS) articles
This assumes you have already configured the aws command line tool. If not, check out my article on Getting Started with the AWS CLI.
The aws iam add-role-to-instance-profile command can be used to attach a role to the instance profile.
aws iam add-role-to-instance-profile --role-name my-role --instance-profile-name my-instance-profile
Did you find this article helpful?
If so, consider buying me a coffee over at