Skip to main content

How to Set Up AWS Organization Access for ObserveOps

This guide walks through the AWS-side setup that lets a single ObserveOps credential profile discover resources across every account in an AWS Organization. Complete these steps in AWS before you create the credential profile in ObserveOps.

Before You Begin​

  • You have an AWS Organization with All features enabled.
  • You have administrator access to both the management account and every member account you want to monitor.
  • You have decided which account will host the IAM user that ObserveOps uses. AWS recommends a member account (for example, a dedicated security or tooling account) rather than the management account.

Setup Steps​

StepWhereWhat You Do
1Hub account (where the IAM user lives)Create the IAM user, for example motadata-monitor, without console access.
2Hub accountAttach the ObserveOps user permission policy to the IAM user. See AWS Organization user permissions JSON and replace ROLE_NAME with your chosen role name.
3Management accountOnly when the hub is a member account: add the AWS Organizations delegation policy so the hub account can list organization accounts.
4Every account to monitorCreate the monitoring role with the same name, attach the AWS managed ReadOnlyAccess policy, and allow the IAM user to assume it through the trust policy. Include the External ID in the trust policy if you use one. The IAM user from step 1 must exist before this step.
5Hub accountCreate the access key for the IAM user and store the secret key securely.
6AWS CLI or AWS CloudShellVerify the access key can list every account in the organization and assume the monitoring role in each one.
7ObserveOpsCreate the credential profile, test it, create the discovery profile, run discovery and provision resources. See Adding Cloud Devices for Monitoring for the ObserveOps-side steps.
note

The ObserveOps SOP ships a one-script quick setup that performs steps 1 through 6 from the management account. Use the script when you want the fastest path. Use the manual steps above when you need per-step control or audit evidence.

Choosing the Hub Account​

The hub account is the account whose IAM user holds the access key and secret key that ObserveOps uses.

  • Member account (recommended) — a dedicated security or tooling account. The management account stays unused for day-to-day monitoring, which keeps the blast radius small. Requires the Organizations delegation policy in step 3.
  • Management account — simpler to set up because no delegation policy is needed. Any mistake with the access key has a wider impact.

Role Name and External ID​

  • The role name must be identical in every account you monitor, including the management account. Enter the same name in the Role Name field of the ObserveOps credential profile.
  • The External ID, if you use one, must be the same value on every role's trust policy. Enter the same value in the External ID field of the ObserveOps credential profile. Use an External ID when the role is assumed by an identity outside your account, for extra protection against the confused deputy problem.

Verify Before You Move to ObserveOps​

Before you create the credential profile in ObserveOps, run these checks from the hub account using the access key you created in step 5.

  • aws organizations list-accounts returns every account in the organization.
  • aws sts assume-role --role-arn arn:aws:iam::<ACCOUNT_ID>:role/<ROLE_NAME> --role-session-name test succeeds in every account, including the management account.

If either check fails, fix the setup before you continue. The ObserveOps credential profile will surface the same failure on the discovery result page.

Maintenance​

  • Add an account to monitoring — deploy the monitoring role in the new account with the same role name and External ID. A later discovery run picks it up automatically.
  • Remove an account from monitoring — delete the monitoring role from that account. The next discovery run skips it and reports a per-account failure that you can ignore.
  • Change the role name or External ID — update the role in every account and the credential profile in ObserveOps. Both values must stay identical across accounts.
  • Rotate the access key — create a new access key on the IAM user, update the credential profile in ObserveOps, test it, then delete the old key.
  • Offboarding — delete the IAM user from the hub account and remove the monitoring role from every account.

Troubleshooting​

SymptomLikely CauseFix
Credential profile Test fails with access-denied on list-accountsThe IAM user lacks organizations:ListAccounts, or the hub is a member account without the delegation policyRe-apply the user permission policy and, if the hub is a member account, apply the delegation policy in the management account.
Discovery reports a single account as failedThe role is missing in that account, the role name does not match, or the External ID is wrongRe-deploy the role in the affected account with the exact same name and External ID.
Discovery reports every account as failedThe IAM user cannot assume the role in any accountConfirm the trust policy on each role allows the hub IAM user's ARN and that any External ID matches.
New accounts added to the Organization are not discoveredThe account is pending or suspended, or the role has not been created yetConfirm the account is Active in AWS Organizations and that the monitoring role exists in it.

Cost Considerations​

AWS does not charge for sts:AssumeRole or for calls to the Organizations APIs used by ObserveOps. ObserveOps uses the same AWS monitoring APIs for each account as for a single-account profile, so adding accounts to an Organization credential profile has the same AWS cost profile as adding the same number of single-account profiles.

Completion Checklist​

  • The IAM user exists in the hub account with the ObserveOps user permission policy attached.
  • The monitoring role exists in every account to monitor, with the same name, the same External ID, and the AWS managed ReadOnlyAccess policy attached.
  • The list-accounts and assume-role verification commands succeed.
  • The ObserveOps credential profile is created and Test succeeds.
  • A discovery run completes and shows resources from every expected account on the result page.