Hi@akhtar,
You can add the specified IAM role to the specified instance profile. An instance profile in AWS can contain only one role. The following add-role-to-instance-profile command adds the role named S3Access to the instance profile named Webserver.
$ aws iam add-role-to-instance-profile --role-name S3Access --instance-profile-name Webserver