---
updatedAt: 2026-05-07T19:41:41.000Z
---

# AWS IAM single account – pod-based identity | Entitle

Learn how to manage granular access on different types of AWS resources for IAM users 

## How does it work?

Entitle integrates with AWS by assuming a role that you configure. This role enables Entitle to manage access dynamically based on approved requests.

* For **on-premises** deployments, the role is assumed by the agent pod's IAM role.
* When a request for access to an EC2 instance, S3 bucket, or IAM role is approved, Entitle automatically creates a policy with the required permissions and attaches it to the corresponding IAM user.
* For requests targeting an IAM policy or IAM group, Entitle grants access directly without creating a new policy.

## Prerequisites

To integrate AWS with Entitle, the following setup is required:

* Create an IAM Role with a trust relationship that allows Entitle to assume it.
* Assign the necessary permissions to the role using inline policies.

> ℹ️
>
> Should you need to allowlist this integration, these are the IP addresses from which Entitle's service reaches the integration:
>
> * Entitle EU (Cloud deployment)
>   * 34.243.199.171
>   * 54.216.133.226
> * Entitle US (Pathfinder deployment)
>   * 52.45.229.219
>   * 54.88.235.213
>   * 3.224.15.134
> * Entitle CA (Pathfinder deployment)
>   * 35.182.218.208
>   * 15.156.179.153

## Set up AWS to work with Entitle

### Obtain your account ID

Click the top-right corner of your screen and copy it the value under **Account ID**. Save it for later on in the configuration.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/b2022af6ebcb0e75b24eb2cd4b3918927c0d638ab7304e5318868689d1c4370d-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "200px",
      "border": true
    }
  ]
}
[/block]

### Set up an AWS access role

1. Create an IAM Role in the desired account. Save that role's ARN aside; it will be used to configure your AWS integration later on.
2. To establish a secure connection between Entitle and your AWS account, **you must define a trust relationship that allows Entitle to assume the role you created**. Add the following trust relationship policy to the role:

```json Entitle Europe
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::321183744702:role/entitle-prod-ichilov@entitle"
            },
            "Action": "sts:AssumeRole",
            "Condition": {
                "StringEquals": {
                    "sts:ExternalId": "<EXTERNAL_ID>"
                }
            }
        }
    ]
}
```
```json Entitle USA
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::396913696231:role/entitle-prod-us-ichilov@entitle"
            },
            "Action": "sts:AssumeRole",
            "Condition": {
                "StringEquals": {
                    "sts:ExternalId": "<EXTERNAL_ID>"
                }
            }
        }
    ]
}
```
```json Entitle Canada
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::321183744702:role/entitle-prod-ca-ichilov@entitle"
            },
            "Action": "sts:AssumeRole",
            "Condition": {
                "StringEquals": {
                    "sts:ExternalId": "<EXTERNAL_ID>"
                }
            }
        }
    ]
}
```
```json On-prem deployments
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "<Your agent-pod's AWS role ARN>"
            },
            "Action": "sts:AssumeRole",
            "Condition": {
                "StringEquals": {
                    "sts:ExternalId": "<EXTERNAL_ID>"
                }
            }
        }
    ]
}
```

4. Entitle uses AWS's **external ID** feature. Create a value for External ID, set it under `"sts:ExternalId"` and save the value; you will need it later in this guide.
5. Add an **inline policy** to the user you’ve just created

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/53a1e015c6b7d0cc2784e46029a77e7be2d5d2cd9c8b4a42fc575f96f746b932-image.png",
        null,
        ""
      ],
      "align": "center",
      "border": true
    }
  ]
}
[/block]

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "MergedPolicy0",
      "Effect": "Allow",
      "Action": [
        "iam:AttachRolePolicy",
        "iam:PutRolePolicy",
        "iam:AttachUserPolicy",
        "iam:CreateRole",
        "iam:CreatePolicy",
        "iam:CreatePolicyVersion",
        "iam:DetachUserPolicy",
        "iam:DetachRolePolicy",
        "iam:DeleteRole",
        "iam:DeletePolicy",
        "iam:DeletePolicyVersion",
        "iam:GetPolicy",
        "iam:GetPolicyVersion",
        "iam:GetRole",
        "iam:ListRoles",
        "iam:ListAttachedRolePolicies",
        "iam:ListEntitiesForPolicy",
        "iam:ListPolicies",
        "iam:ListPolicyTags",
        "iam:ListPolicyVersions",
        "iam:ListRolePolicies",
        "iam:ListRoleTags",
        "iam:ListUserPolicies",
        "iam:ListUsers",
        "iam:TagPolicy",
        "iam:UntagPolicy",
        "iam:TagRole",
        "iam:UnTagRole",
        "organizations:ListAccounts",
        "organizations:DescribeAccount",
        "iam:AddUserToGroup",
        "iam:RemoveUserFromGroup",
        "iam:ListGroupsForUser",
        "iam:ListGroups",
        "iam:GetUser",
        "iam:GetGroup"
      ],
      "Resource": "*"
    }
  ]
}
```

6. For each resource type you wish to manage, attach another inline policy:

```json IAM Policies
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "iam:ListPolicies",
                "iam:GetPolicyVersion",
                "iam:GetPolicy",
                "iam:TagRole",
                "iam:ListEntitiesForPolicy",
                "iam:AttachUserPolicy",
                "iam:ListUsers",
                "iam:ListUserPolicies",
                "iam:ListPolicyTags",
                "iam:TagPolicy",
                "iam:TagUser"
            ],
            "Resource": "*"
        }
    ]
}
```
```json S3 Buckets + EC2 Instance
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "iam:ListPolicies",
                "iam:GetRole",
                "iam:GetPolicyVersion",
                "s3:GetBucketTagging",
                "ec2:DescribeInstances",
                "iam:GetPolicy",
                "ec2:DescribeTags",
                "ec2:DescribeRegions",
                "iam:ListEntitiesForPolicy",
                "iam:AttachUserPolicy",
                "s3:ListBucket",
                "iam:ListUserPolicies",
                "iam:CreatePolicy",
                "s3:ListAllMyBuckets",
                "iam:ListUsers",
                "iam:ListPolicyTags",
                "iam:DetachUserPolicy"
            ],
            "Resource": "*"
        }
    ]
}
```
```json IAM Roles
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "iam:ListPolicies",
                "iam:GetRole",
                "iam:GetPolicyVersion",
                "iam:ListRoleTags",
                "iam:GetPolicy",
                "iam:AttachUserPolicy",
                "iam:ListEntitiesForPolicy",
                "iam:ListRoles",
                "iam:ListUserPolicies",
                "iam:CreatePolicy",
                "iam:ListUsers",
                "iam:ListPolicyTags",
                "iam:DetachUserPolicy"
            ],
            "Resource": "*"
        }
    ]
}
```

7. **Copy** the role’s ARN, you’ll use it later in this guide.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/b5c27054ee3b1ef5698bd5806e00aa0c2ee5b7077a103e62ff6bfd2605939628-image.png",
        null,
        ""
      ],
      "align": "center",
      "border": true
    }
  ]
}
[/block]

## Set up the integration in Entitle

1. Log in to Entitle and go to the **Integrations** page.
2. Click **Add Integration** and type **AWS** in the Application field.
3. Start the integration setup following the instructions in [Set up a new integration](pathfinder-integrations-resources-roles#set-up-a-new-integration).
4. Don’t forget to set the **Save on** field with your configuration, i.e., your own hosted agent or Entitle’s cloud.
5. In the **Connection** section, select **IAM Single Account**.
6. Fill in the required components in the configuration:

   1. Paste the **account ID** of the account you wish to manage resources on as the `account_id` value.
   2. Paste the **ARN of the Entitle role** as the `access_role_arn value`.
   3. Paste your **external ID** as the `external_id` value.
   4. Paste your **region** code as the `region` value.
   5. Under the `options` configuration, add the tags' `key` and `value` in case you wish to retrieve only resources with the listed tags.

```json Setup configuration
{
    "root_account": {
        "account_id": "", // Your root account ID
        "access_role_arn": "", // Your access role ARN previously copied
        "external_id": "", // External ID set in the access role's trust-relationship
        "region": "" // Your region
    },
    "options": { 
        "tags": [
            {
                "key": "", // Tag key of resources to be fetched
                "value": "" // Tag value of resources to be fetched
            }
        ]
    }
}
```

6. Click **Save**.