---
title: Create an IAM role in the security, identity, and compliance
description: Complete the following steps to create an IAM role in the security, identity, and compliance:
component: pingintelligence
version: 5.1
page_id: pingintelligence:api_security_enforcer:pingintelligence_creating_iam_role_security_identity_compliance
canonical_url: https://docs.pingidentity.com/pingintelligence/5.1/api_security_enforcer/pingintelligence_creating_iam_role_security_identity_compliance.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Create an IAM role in the security, identity, and compliance

## About this task

Complete the following steps to create an IAM role in the security, identity, and compliance:

## Steps

1. Create an IAM role by selecting the EC2 instance:

   ![kqx1564009032835](../../5.2/_images/kqx1564009032835.png)

2. Assign **AmazonEC2ReadOnlyAccess** privilege to the role.

   ![ypn1564009033450](../../5.2/_images/ypn1564009033450.png)

3. Provide the role name.

   ![kzg1564009034146](../../5.2/_images/kzg1564009034146.png)
