Assign IAM role
Assign IAM role
- Go to AWS Management Console

- In the EC2 interface
- Select Instances
- Select the newly created instance

- In the EC2 interface
- Select Actions
- Select Security
- Select Modify IAM role

- In the Modify IAM role interface
- Select CloudWatchAgentRole
- Select Save

- Completed role assignment successfully
- Check the instance that has been assigned the IAM role
