Skip to main content
This article applies to AWS connections created after July 2025, whose connection card asks for Region, Service Role ARN, and Service Role External ID. If your connection has no Region field, it uses the archived pre-July-2025 setup, and the main differences are noted inline below.

After this article

You will be able to connect an individual AWS account to Lumos to sync IAM users, groups, roles, and policies, and to provision users, group memberships, and role access, including deactivating and deleting IAM users during offboarding.

Capabilities

Delete permanently removes the IAM user and its credentials from AWS, and Lumos can’t restore a deleted user. To block a user’s access but keep the user, use Deactivate instead. Lumos can reverse it by activating the account, which removes the DenyAllAccess policy. Activity tracking: Last Login uses the PasswordLastUsed field on the IAM user and reflects the most recent password-based login only (available for users with password-enabled accounts). This capability does not read CloudTrail events. Role access history monitoring uses CloudTrail read access.

Required plan and roles

  • AWS permissions: you need elevated AWS IAM permissions to create the cross-account role Lumos assumes.
  • Role permissions (managed policies): attach SecurityAudit and AWSCloudTrailReadOnlyAccess to the role. CloudTrail read access powers last-activity and role access history monitoring.
    • Additionally attach this custom policy:
  • Permission purposes: the List* and Get* IAM actions and SecurityAudit power syncing users, groups, roles, and policies. The write IAM actions (AttachUserPolicy, AddUserToGroup, CreateUser, Delete*, Deactivate*, and so on) power provisioning, deactivation, and the full credential cleanup performed on user deletion. cloudtrail:LookupEvents plus AWSCloudTrailReadOnlyAccess power activity tracking. The SSO-scoped statements cover the AWS-reserved roles and SAML provider that Identity Center creates in the account.
  • Pre-July-2025 (Classic) connections: the custom policy was a smaller deprovisioning-only policy (iam:DeactivateMFADevice, iam:DeleteAccessKey, iam:RemoveUserFromGroup, iam:DeleteSigningCertificate, iam:DeleteVirtualMFADevice, iam:DeleteUserPolicy, iam:DeleteSSHPublicKey, iam:DeleteUser, iam:DetachUserPolicy, iam:DeleteServiceSpecificCredential, iam:DeleteLoginProfile on Resource *) alongside the same two managed policies.

Read-only access vs provisioning

Is read-only possible? Yes. Everything Lumos can do in your account is set by the policies you attach to the role it assumes, and the read and write halves of that permission set are separable. The List* and Get* IAM actions plus SecurityAudit power syncing users, groups, roles, and policies, while the write actions are what enable provisioning. By not providing write scopes, Lumos will be unable to modify access in AWS IAM. What read-only requires. An IAM role with the SecurityAudit and AWSCloudTrailReadOnlyAccess managed policies attached, plus a reduced version of the custom policy above that keeps only its read actions: the iam:List* and iam:Get* actions, iam:SimulatePrincipalPolicy, sts:GetCallerIdentity, and cloudtrail:LookupEvents. Leave out the write actions and the AccessToSSOProvisionedRoles and AccessToSCIMProvider statements. Follow the role creation and trust relationship steps below, attaching the reduced policy in place of the full one. What full provisioning requires. The same role with the complete custom policy above, which adds the write IAM actions (AttachUserPolicy, AddUserToGroup, CreateUser, the Delete* and Deactivate* actions, and the SSO-scoped role and SAML provider statements) that power provisioning, deactivation, and full credential cleanup on user deletion. Watch out for. Read-only and provisioning use the same role and trust relationship, so switching modes later means editing the role’s attached policies rather than reconnecting. Deleting a user requires the write actions and automatically cleans up that user’s access keys, MFA devices, and other credentials. If the write policy is incomplete, deletions can fail with a DeleteConflict error.

Instructions

Phase 1: Create the IAM role in AWS You can create the role via the IAM Console (Option A) or Terraform (Option B). Option A: AWS Console
  1. In the IAM Console go to Policies → Create policy → JSON, paste the custom policy from Required plan and roles (or the reduced read-only version), name it, and save it.
  2. Go to Roles → Create Role → Another AWS account and enter Account ID 349123981986.
  3. Enable Require external ID and enter a secure value of your choosing.
  4. Attach the managed policies SecurityAudit and AWSCloudTrailReadOnlyAccess, plus the custom policy you saved in step 1.
  5. Edit the trust relationship. On the Name, review, and create page, click edit next to Step 1, and change the value of the AWS key (within Principal) to arn:aws:iam::349123981986:user/global-service-account.
  6. Create the role. The connector uses the default 1 hour session duration. (Pre-July-2025 connections required Max session duration set to 12 hours / 43200s. The Terraform example still sets max_session_duration = 43200, which is harmless, and the connector uses 1 hour.)
  7. Copy the role ARN and your external ID.
Option B: Terraform Save the custom policy JSON from Required plan and roles (or the reduced read-only version) as lumos-policy.json next to your Terraform configuration.
Phase 2: Connect in Lumos
  1. Find the AWS IAM (Single Account) card in your Lumos integrations (reconnect an existing card or add a new one).
  2. Enter the role ARN and external ID.
  3. Click Connect.

API Endpoints Used

Troubleshooting

Access Denied when assuming the role. Verify the Service Role ARN is correct. Check the External ID matches the trust policy exactly (it is case-sensitive). Confirm the trust policy includes Lumos account 349123981986, and verify the role exists. Insufficient permissions errors. Verify the role has SecurityAudit, AWSCloudTrailReadOnlyAccess, and the custom policy from Required plan and roles attached, with every action listed there. For a read-only connection, confirm the reduced policy includes every read action. DeleteConflict error when deleting a user. When a user still has credentials attached (access keys, MFA devices, and so on), Lumos removes them first and then deletes the user. If deletion still fails, the role’s custom policy is likely missing one of the write actions Lumos uses for that cleanup. Compare the attached policy with the full policy in Required plan and roles, add any missing actions, and retry the deletion. Activity tracking not working. Enable CloudTrail, verify it is logging AssumeRole events, and ensure the service role has CloudTrail read permissions (AWSCloudTrailReadOnlyAccess).