aws iam add-role-to-instance-profile
Adds the specified IAM role to the specified instance profile. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--instance-profile-nameThe name of the instance profile to update.--role-nameThe name of the role to add.