Create IAM role
Create an IAM role
In this section, you will practice setting up CloudWatch Agent to monitor EC2 Instance’s RAM and send data back to CloudWatch. For EC2 Instance to have access to CloudWatch, you need to assign it an appropriate IAM Role.
- Go to AWS Management Console

- In the IAM interface
- Select Roles
- Select Create role

- In the Select trusted entity interface
- Select AWS service
- Use case, select EC2

- In the Add permissions interface
- Search CloudWatchAgentServer policy
- Select CloudWatchAgentServer policy
- Select Next

- In the Role details section
- Select CloudWatchAgentRole

- Select Create role

- Complete role creation
