About Amazon Elastic Compute Cloud (EC2)
The Amazon EC2 connector collects instance inventory, security groups, VPC topology, AMI metadata, and related compute details from your AWS account so you can attach them to controls in Iru Compliance. Iru calls AWS APIs usingsts:AssumeRole into an IAM role you create in your account. The role trusts Iru’s AWS principal and enforces an external ID that the connector wizard shows you. Access is read-only, so Iru does not start, stop, or terminate instances through this source.
How It Works
Iru runs in Iru’s AWS account. You create a customer-managed IAM role in your account that:- Trusts Iru’s role ARN (shown in the wizard) only when
sts:ExternalIdmatches the value Iru displays. - Allows read-only EC2 and supporting calls, typically via
AmazonEC2ReadOnlyAccess, or a tighter inline policy if your security team prefers least privilege.
| Detail | Value |
|---|---|
| Category | Cloud compute |
| Authentication | Cross-account IAM role (sts:AssumeRole + external ID) |
Prerequisites
- IAM rights to create roles and attach policies (for example
IAMFullAccessor a narrower admin role). - The Iru principal ARN and external ID from your tenant’s connector screen (not the sample values in examples below unless they match what Iru shows you today).
Connect Amazon EC2 to Iru
- Iru Compliance
- AWS
Start here: open the source wizard and review the trust policy (and note the external ID). When you are ready to create the role in AWS, switch to the AWS tab and follow Create the IAM role. After you have the Role ARN, return to the Iru Compliance tab and complete Submit the role ARN in Iru below.
Get the trust policy from Iru
Turn on AWS Elastic Compute Cloud (EC2)
Find AWS Elastic Compute Cloud (EC2) (use Category or Search by name or description). On that card, turn on the toggle. Leave the Iru is requesting access to external services wizard tab open.
Review the trust policy JSON
The wizard asks for a role ARN and displays the trust policy your IAM role must use (Principal and sts:ExternalId). Below is an example of the structure; copy the live JSON from your wizard so the account, principal ARN, and external ID match exactly.
copy=false
Switch to AWS to create the role
Keep the Iru wizard tab open for reference, then switch to the AWS tab and follow Create the IAM role.
Submit the role ARN in Iru
Finish the AWS tab first (through Create the IAM role) so you have the Role ARN from the new role.
Finish the connection
Click Submit Role. When the connection succeeds, the wizard shows Connection Configured.
Troubleshooting
Nothing opens when you turn the source on
Nothing opens when you turn the source on
Check pop-up blocker settings for the Iru site and try again.
AccessDenied on AssumeRole
AccessDenied on AssumeRole
Verify the external ID and principal on the trust policy match Iru’s wizard character-for-character.
Empty inventory
Empty inventory
Confirm the role lives in the same account as your instances and that instances exist in Regions you expect.
Missing security group / VPC data
Missing security group / VPC data
Ensure
ec2:Describe* coverage (managed policy already includes these). Custom policies need matching Describe* actions.Considerations
EC2 APIs are Regional: first sync may take longer…
EC2 APIs are Regional, so first sync may take longer across many Regions.
AmazonEC2ReadOnlyAccess also covers related ELB and…
AmazonEC2ReadOnlyAccess also covers related ELB and Auto Scaling reads for a fuller picture.This integration never mutates instances: it only…
This integration never mutates instances; it only describes them.
Related Articles
Sources Management
Browse and manage every Compliance source.
Getting Started With Compliance
Frameworks, actions, and Artifacts.
Iru Overview
How Endpoint, Compliance, and Identity fit together.
Artifacts Management
Upload, review, and organize evidence from sources and actions.
