
Amazon IAM
Amazon Web Services- Overview
- Setup
- Data & mappings
- Operations & API
- Changelog
Integrates with AWS Identity and Access Management (IAM) to
synchronize the account's IAM configuration into the Brinqa platform. The connector reads instance
profiles, roles (including their attached managed-policy ARNs and inline-policy names), the role
inline policy documents, customer-managed policies, and the default version document of each
customer-managed policy. IAM is a global AWS service, so the connector always calls the global IAM
endpoint (Region.AWS_GLOBAL) regardless of the configured region; when assumeRoleARN lists
multiple roles, each account is synced with its own IAM client.
Data retrieved from Amazon IAM
| Connector Object | Required | Maps to Data Model |
|---|---|---|
| InstanceProfile | Yes | Cloud Resource |
| Policy | Yes | Cloud Resource |
| PolicyVersion | Yes | Cloud Resource |
| Role | Yes | Cloud Resource |
| RoleInlinePolicy | Yes | Cloud Resource |
Model relationships
For detailed steps on how to view the data retrieved from Amazon IAM in the Brinqa Platform, see How to view your data.
Connection settings
When setting up a data integration, select Amazon IAM from the Connector dropdown and provide the following:
| Setting | Required | Default | Description |
|---|---|---|---|
| Access key ID | No | — | AWS user access key ID, if not specified, the connector consults the default credentials provider chain to try and determine the credentials to use |
| Secret access key | No | — | AWS user secret access key, if not specified, the connector consults the default credentials provider chain to try and determine the credentials to use |
| Default region | No | us-east-1 | Default AWS region, used for the AWS STS calls that check the credentials and assume roles; IAM itself is global, so IAM calls always go to the global IAM endpoint |
| Assume role | No | — | Amazon Resource Name for the role to assume; separate several role ARNs with commas to sync each role's account |
| External ID | No | — | Optional STS external ID, sent when assuming the role named in the Assume role setting. Required if that role's trust policy enforces an ExternalId condition; leave blank otherwise. Surrounding whitespace is ignored |
| Session duration | No | 900 | Assume role session duration in seconds, from 900 to 43200 |
| Page size | No | 100 | The maximum number of results to retrieve per operation |
| Parallel requests | No | min(4, CPU cores) | Maximum number of parallel requests |
Authentication
Authentication is shared across the AWS connector bundle via the AwsConfiguration base class.
The IAM sub-connector uses the AWS SDK for Java v2 IamClient, which signs every request with AWS
SigV4 using credentials resolved through the following chain (in order):
- STS AssumeRole — if
assumeRoleARNis configured, the connector assumes that role (using the credentials below as the principal) and uses the resulting temporary session credentials. SetexternalIdas well if the role's trust policy enforces anExternalIdcondition; it is sent on theAssumeRolecall and is required for cross-account confused-deputy protection. - Static access keys — if
accessKey/secretKeyare configured, they are used directly. - Default credentials provider chain — environment variables,
~/.aws/credentials, container role, or EC2 instance metadata.
Assumed-role sessions use the configurable durationSeconds (Session duration, default 900 s)
with the stable session name Brinqa-Iam. assumeRoleARN may be a comma-separated list to sync
multiple accounts in one run.
IAM is global: roles are synced one after another, each once with one IamClient for the global
region (the region/regions options are ignored), and each client is closed when its account has
been fully synced. A role that can't be assumed fails the sync, and the error names the role. If IAM denies access (HTTP
401/403) to the model's main list call, that account is logged and skipped; any other error fails
the sync.
Test connection first checks the credentials, and each role in Assume role, with STS
GetCallerIdentity (no IAM permission needed), then reads one role with ListRoles and fails if
AWS denies access. The test doesn't check ListAttachedRolePolicies or ListRolePolicies: if AWS
denies them, the test still passes, and syncs leave ATTACHED_POLICY_ARNS and INLINE_POLICY_NAMES
empty.
Choosing an authentication path
The list above is the order the connector resolves credentials in. In terms of what to configure, three paths are supported:
| Path | Configure | When to use |
|---|---|---|
| STS AssumeRole (recommended) | assumeRoleARN, plus externalId if the trust policy requires one | Cross-account access, and the only path that supports an ExternalId condition. Still needs a principal, from either of the paths below. |
| Default credentials provider chain (fully keyless) | nothing | The platform runs inside your AWS account on an EC2 instance profile or an EKS IRSA role. No long-lived keys exist anywhere. |
| Static access keys (optional) | accessKey, secretKey | The platform runs outside your AWS account and no role is available. Long-lived credentials — prefer either path above. |
sts:AssumeRole is required only when assumeRoleARN is set.
Required AWS API permissions
| Permission | Purpose |
|---|---|
iam:ListInstanceProfiles | List instance profiles (InstanceProfile model) |
iam:ListRoles | List roles (Role and RoleInlinePolicy models) |
iam:ListAttachedRolePolicies | List a role's attached managed-policy ARNs (Role model) |
iam:ListRolePolicies | List a role's inline-policy names (Role and RoleInlinePolicy models) |
iam:GetRolePolicy | Retrieve a role's inline-policy document (RoleInlinePolicy model) |
iam:ListPolicies | List customer-managed policies (Policy and PolicyVersion models) |
iam:GetPolicyVersion | Retrieve a policy's default version document (PolicyVersion model) |
sts:AssumeRole | Only when assumeRoleARN is set |
Sync Behavior
Each sync is a full sync. Every run enumerates all resources through the AWS APIs; the connector does not maintain a sync token or apply an incremental since date filter.
The account (CLOUD_ACCOUNT_ID) comes from the role ARN with Assume role, so it costs no API call. With access keys only, or the agent's default credentials, the connector calls STS GetCallerIdentity once per sync (no IAM permission needed); if that call fails, it logs a warning and syncs the records without the account.
Every AWS call uses the AWS SDK's standard retry strategy for throttling and transient errors, with 4 retries (5 attempts) by default (maxRetries operation option), a 30-second limit per attempt, and 180 seconds per call including retries.
How to obtain Amazon IAM credentials
Create an IAM user for AWS access
For the Amazon IAM connector to interact with the AWS SDK and retrieve identity data, you must provide specific AWS credentials and permissions. To create an IAM user, follow these steps:
-
Log in to your organization's AWS Management Console as an administrator.
-
Navigate to the Identity and Access Management (IAM) dashboard.
-
From the navigation pane under Access management, click Users, and then click Create user.
-
Provide a User name, leave the Provide user access to AWS Management Console option unchecked, and then click Next.
-
Click the Attach policies directly option and then click Create policy.
-
Click the JSON tab and paste the following minimum required policy:
{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": ["iam:ListInstanceProfiles","iam:ListRoles","iam:ListRolePolicies","iam:GetRolePolicy","iam:ListAttachedRolePolicies","iam:ListPolicies","iam:GetPolicyVersion"],"Resource": "*"}]} -
Click Next, provide a name for the policy, and then click Create policy.
-
Back on the Add permissions page, search for and select the policy you just created, and then click Next.
-
Click Create user.
Note: If you do not have permissions to create a new IAM user, contact your AWS administrator. For additional information, see AWS documentation.
Attribute mappings
Expand the sections below to view the mappings between the source and the Brinqa data model attributes:
InstanceProfile
| Source Field Name | SDM Attribute |
|---|---|
constant | CATEGORIES (multivalued) |
InstanceProfile.arn | UID |
InstanceProfile.arn | ARN |
InstanceProfile.createDate | FIRST_SEEN |
InstanceProfile.instanceProfileId | INSTANCE_PROFILE_ID |
InstanceProfile.instanceProfileName | INSTANCE_PROFILE_NAME |
InstanceProfile.path | PATH |
InstanceProfile.roles[].arn | ROLE_ARNS (multivalued) |
InstanceProfile.tags[] (key:value) | TAGS (multivalued) |
| literal "AWS" | CLOUD_PROVIDER |
| sync start time | LAST_CAPTURED |
| the synced account | CLOUD_ACCOUNT_ID |
| — | NAME |
AWS doesn't return tags in ListInstanceProfiles responses, so TAGS is currently left empty.
Policy
| Source Field Name | SDM Attribute |
|---|---|
constant | CATEGORIES (multivalued) |
| literal "AWS" | CLOUD_PROVIDER |
Policy.arn | UID |
Policy.arn | ARN |
Policy.attachmentCount | ATTACHMENT_COUNT |
Policy.createDate | FIRST_SEEN |
Policy.defaultVersionId | DEFAULT_VERSION_ID |
Policy.description | DESCRIPTION |
Policy.isAttachable | IS_ATTACHABLE |
Policy.path | PATH |
Policy.permissionsBoundaryUsageCount | PERMISSIONS_BOUNDARY_USAGE_COUNT |
Policy.policyId | POLICY_ID |
Policy.policyName | POLICY_NAME |
Policy.tags[] (key:value) | TAGS (multivalued) |
Policy.updateDate | SOURCE_LAST_MODIFIED |
| sync start time | LAST_CAPTURED |
| the synced account | CLOUD_ACCOUNT_ID |
| — | NAME |
AWS doesn't return Tags or Description in ListPolicies responses, so TAGS and
DESCRIPTION are currently left empty.
PolicyVersion
| Source Field Name | SDM Attribute |
|---|---|
constant | CATEGORIES (multivalued) |
| literal "AWS" | CLOUD_PROVIDER |
Policy.arn | POLICY_ARN |
Policy.arn + " | UID |
Policy.arn + " | NAME |
PolicyVersion.createDate | FIRST_SEEN |
PolicyVersion.document (URL-decoded) | POLICY_DOCUMENT |
PolicyVersion.isDefaultVersion | IS_DEFAULT_VERSION |
PolicyVersion.versionId | VERSION_ID |
| sync start time | LAST_CAPTURED |
| the synced account | CLOUD_ACCOUNT_ID |
Role
| Source Field Name | SDM Attribute |
|---|---|
constant | CATEGORIES (multivalued) |
ListAttachedRolePolicies -> AttachedPolicy.policyArn | ATTACHED_POLICY_ARNS (multivalued) |
| ListRolePolicies -> policyNames | INLINE_POLICY_NAMES (multivalued) |
| literal "AWS" | CLOUD_PROVIDER |
Role.arn | UID |
Role.arn | ARN |
Role.assumeRolePolicyDocument (URL-decoded) | ASSUME_ROLE_POLICY_DOCUMENT |
Role.createDate | FIRST_SEEN |
Role.description | DESCRIPTION |
Role.maxSessionDuration | MAX_SESSION_DURATION |
Role.path | PATH |
Role.permissionsBoundary.permissionsBoundaryArn | PERMISSIONS_BOUNDARY_ARN |
Role.roleId | ROLE_ID |
Role.roleName | ROLE_NAME |
Role.tags[] (key:value) | TAGS (multivalued) |
| sync start time | LAST_CAPTURED |
| the synced account | CLOUD_ACCOUNT_ID |
| — | NAME |
AWS doesn't return Tags or PermissionsBoundary in ListRoles responses, so TAGS and
PERMISSIONS_BOUNDARY_ARN are currently left empty.
RoleInlinePolicy
| Source Field Name | SDM Attribute |
|---|---|
constant | CATEGORIES (multivalued) |
GetRolePolicy.policyDocument (URL-decoded) | POLICY_DOCUMENT |
| ListRolePolicies -> policyNames entry | POLICY_NAME |
| literal "AWS" | CLOUD_PROVIDER |
Role.arn | ROLE_ARN |
Role.arn + " | UID |
Role.roleName | ROLE_NAME |
Role.roleName + "/" + policyName | NAME |
| sync start time | LAST_CAPTURED |
| the synced account | CLOUD_ACCOUNT_ID |
Operations & API
Expand each connector object to see its operation options, delta-sync behavior, and the API it uses. See connector operation options for how to apply operation options (keys and values are case-sensitive).
InstanceProfile
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
pageSize | maxItems value sent on each ListInstanceProfiles call, kept within the API's range of 1–1000. | The connector's Page size setting (100) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of InstanceProfile on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
IamClient) · Endpoint:iam:ListInstanceProfiles
Policy
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
pageSize | maxItems value sent on each ListPolicies call, kept within the API's range of 1–1000. | The connector's Page size setting (100) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of Policy on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
IamClient) · Endpoint:iam:ListPolicies - Default filters:
scope=LOCAL— only customer-managed policies are returned; AWS-managed
PolicyVersion
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
pageSize | maxItems value sent on each ListPolicies call, kept within the API's range of 1–1000. | The connector's Page size setting (100) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of PolicyVersion on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
IamClient) · Endpoint:iam:ListPolicies, then per policyiam:GetPolicyVersion - Default filters:
scope=LOCAL— only customer-managed policies are returned. Policies with a
Role
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
pageSize | maxItems value sent on each ListRoles, ListAttachedRolePolicies and ListRolePolicies call, kept within the API's range of 1–1000. | The connector's Page size setting (100) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of Role on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
IamClient) · Endpoint:iam:ListRoles, then per roleiam:ListAttachedRolePoliciesandiam:ListRolePolicies
RoleInlinePolicy
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
pageSize | maxItems value sent on each ListRoles and ListRolePolicies call, kept within the API's range of 1–1000. | The connector's Page size setting (100) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of RoleInlinePolicy on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
IamClient) · Endpoint:iam:ListRoles, then per roleiam:ListRolePolicies, then per policyiam:GetRolePolicy
Changelog
The Amazon IAM connector has undergone the following changes:
| Version | Description | Migration Steps |
|---|---|---|
| 3.3.0 | New Features - Records now have Categories. Categories says what kind of asset each record is, so it can be filtered and grouped with similar assets from other connectors. Roles and instance profiles are Identity; policies, policy versions and inline role policies are Identity and Security. - Records now show their AWS account. Roles, inline role policies, policies, policy versions and instance profiles now have Cloud account ID, the AWS account they were synced from. With several roles in Assume role, this tells you which account each record belongs to. It needs no extra IAM permission. - New operation option for retries. maxRetries sets how many times the connector retries an AWS request that AWS throttled or that failed with a temporary error (default 4; 0 turns retries off). - Policy versions and inline policies now have a Name. PolicyVersion records now have Name, the same value as their ID (the policy ARN and version), and RoleInlinePolicy records the role name and policy name, such as app-role/s3-read. Before, Name was empty. It's filled in after the next sync. Improvements - Last captured is now the same for every record in a sync. Records from the same sync could show slightly different Last captured times. They now all show the time the sync started. - Syncs are less likely to fail when AWS is briefly busy. When AWS throttles a request or has a temporary error, the connector now retries it a few more times before the sync fails. - CloudTrail shows which Brinqa connector made each call. With Assume role, the role session is now named Brinqa-Iam instead of Brinqa- and a random ID. Trust policies that match Brinqa-* still work. - Clear error for an out-of-range Session duration. With Assume role set, a Session duration below 900 or above 43200 seconds failed with an AWS error about assuming the role. Test connection and syncs now fail with a message that gives the allowed range. - Access keys are now checked as a pair. When only one of Access key ID and Secret access key is filled in, Test connection and syncs now stop with a message asking you to fill in both, or leave both blank. Bug Fixes - Test connection now fails when the credentials can't list IAM roles. Test connection passed when the credentials were valid but not allowed to list IAM roles ( iam:ListRoles), so the problem only showed up in a sync. It now fails and shows the AWS error. Other permissions the connector needs are still not checked. - Test connection now fails when AWS rejects the credentials or the role. Test connection could pass even when the access keys were invalid or the role in Assume role could not be assumed. It now checks the credentials, and each role, before anything else, and fails with the AWS error. This needs no extra IAM permission, but the Brinqa agent must be able to reach AWS STS. - Syncs now fail when a role in Assume role can't be assumed. When AWS refused to let the connector assume a role in Assume role, for example because the role was deleted or its trust policy no longer allows Brinqa, the sync skipped that role's account and still reported success, so the account's records were missing without an error. The sync now fails, and the error names the role. | N/A |
| 3.2.6 | Bug Fixes - Syncs no longer fail when Page size is set above the AWS limit. When Page size was set higher than the maximum AWS accepts for a request (1,000 for IAM), AWS rejected the request and the sync failed. The connector now caps each request at that maximum. Syncs that use the default Page size of 100 are unaffected. - IAM syncs no longer drop policies or understate role permissions when AWS returns an error. Errors while listing a role's attached or inline policies returned only the policies found so far, so Attached policy ARNs and Inline policy names could be incomplete. Errors while reading an inline policy or a policy version skipped that record. Now, when access is denied, a role's policy lists are left empty instead of partial, and the affected records are skipped as before. Other errors, such as throttling that persists after retries, now fail the sync instead of leaving data missing. | N/A |
| 3.2.5 | Bug Fixes - Resolved an issue where the Brinqa agent could stop running when Assume role is configured. Syncs and connection tests now release the resources they use when they finish, so those resources no longer build up over time. | N/A |
| 3.2.4 | Improvements - Parallel requests now appears with the other tuning settings. The setting was shown beside the credential fields instead of inside the Advanced section, where Page size and Session duration already appear. It now renders inside Advanced. The setting's behavior and default are unchanged. - The Advanced section heading no longer shows quotation marks. The heading was rendered as "Advanced", with the quote marks visible on the configuration screen. It now reads Advanced. | N/A |
| 3.2.3 | New Features - Roles that require an External ID can now be used. A new optional External ID setting is sent when assuming the role named in the connector's Assume role setting, so roles whose trust policy enforces an ExternalId condition — the standard protection against cross-account confused-deputy access — can now be assumed. Existing configurations are unaffected: leave it blank and the role is assumed exactly as before. The connector's authentication documentation now also describes all three supported paths — assuming a role, running fully keyless from an EC2 instance profile or EKS IRSA role, and static access keys. Bug Fixes - The Parallel requests setting is now labeled on the configuration screen. The setting was shown without its proper name or help text. It now displays its label and description. The setting's behavior and default are unchanged. | N/A |
| 3.2.2 | No changes in this release. | N/A |
| 3.2.1 | No changes in this release. | N/A |
| 3.2.0 | No changes in this release. | N/A |
| 3.1.0 | New Features - New connector — syncs instance profiles, roles, inline role policies, customer-managed policies, and policy versions. Role records expose their attached and inline policies, and trust policies are URL-decoded for direct readability. Improvements - Sync failures are now visible. Previously, certain AWS API errors (throttling, server errors, transient network failures, validation errors) could be silently swallowed during multi-region sync, producing empty results without indicating a problem. These now surface as sync failures with a clear log entry detailing the HTTP status, AWS error code, request id, and service name. Per-region permission gaps (HTTP 401 / 403) still allow the sync to continue across other regions, but are now visible in logs. | N/A |