1 Answer
- Newest
- Most votes
- Most comments
2
I haven't created instance profiles via the console in a while, but since you already have your role created, you can create an EC2 instance profile and attach it to your existing role by launching CloudShell and running the following commands. Be sure to replace "EC2RoleForMyServer" with the name of your role:
aws iam create-instance-profile --instance-profile-name EC2RoleForMyServer aws iam add-role-to-instance-profile --instance-profile-name EC2RoleForMyServer --role-name EC2RoleForMyServer
answered a year ago
Relevant content
- asked a year ago
- asked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 2 years ago