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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 0b34f3 in the box below so that we can be sure you are a human.