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.

  1. Go to AWS Management Console
  • Find IAM
  • Select IAM

CreateIAMrole

  1. In the IAM interface
  • Select Roles
  • Select Create role

CreateIAMrole

  1. In the Select trusted entity interface
  • Select AWS service
  • Use case, select EC2

CreateIAMrole

  1. In the Add permissions interface
  • Search CloudWatchAgentServer policy
  • Select CloudWatchAgentServer policy
  • Select Next

CreateIAMrole

  1. In the Role details section
  • Select CloudWatchAgentRole

CreateIAMrole

  1. Select Create role

CreateIAMrole

  1. Complete role creation

CreateIAMrole