Fortinet black logo
6.0.5

Creating an IAM role for CloudWatch agent

Creating an IAM role for CloudWatch agent

To run the CloudWatch agent on an Amazon EC2 instance, first create an IAM role. This role provides permissions for reading information from the instance and writing it to CloudWatch.

To create the IAM role:
  1. Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.

  2. In the left navigation pane, click Roles.

  3. Click Create role.

  4. Under Trusted entity type, select AWS service.

  5. Under Use case, select EC2 then click Next.

  6. From the list of policies, select CloudWatchAgentServerPolicy then click Next.

  7. Enter a Role name (such as CloudWatchAgentServerRole), a Description if needed, and then click Create role. The role is created.

  8. Attach the new IAMrole to the FortiPortal EC2 instance. The CloudWatch agent can now be run on this EC2 instance.

    See the Amazon EC2 documentation for more information about attaching IAM roles to EC2 instances,

Creating an IAM role for CloudWatch agent

To run the CloudWatch agent on an Amazon EC2 instance, first create an IAM role. This role provides permissions for reading information from the instance and writing it to CloudWatch.

To create the IAM role:
  1. Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.

  2. In the left navigation pane, click Roles.

  3. Click Create role.

  4. Under Trusted entity type, select AWS service.

  5. Under Use case, select EC2 then click Next.

  6. From the list of policies, select CloudWatchAgentServerPolicy then click Next.

  7. Enter a Role name (such as CloudWatchAgentServerRole), a Description if needed, and then click Create role. The role is created.

  8. Attach the new IAMrole to the FortiPortal EC2 instance. The CloudWatch agent can now be run on this EC2 instance.

    See the Amazon EC2 documentation for more information about attaching IAM roles to EC2 instances,