What Oleria discovers
- Identities - IAM users and roles, plus IAM Identity Center users, groups, and group memberships.
- Policies - Customer managed, AWS managed, and inline IAM policies, plus IAM Identity Center permission sets and their account assignments, and the access each one grants.
- Role trust - Who can assume each IAM role: users and roles in the same account or in other accounts, and AWS services. A trust policy statement whose principal is a wildcard (
*), a federated SAML or OIDC identity provider, or a bare account ID doesn’t produce a trust relationship in Oleria. - Credentials - IAM user access keys, signing certificates, SSH public keys, and service-specific credentials. Also AWS Secrets Manager secrets that don’t have rotation turned on (metadata only, never secret values), and AWS Certificate Manager (ACM) certificates.
- Resources - EC2 instances and S3 buckets, including who can access each bucket.
- Activity - AWS CloudTrail events.
- Risk signals - Oleria’s own checks flag active access keys older than 90 days, IAM users without MFA, IAM policies that allow
Action: "*"onResource: "*", publicly accessible S3 buckets, and IAM users who have signed in to the console or used an access key before, but not in the last 90 days. An IAM user that has never signed in or used a key isn’t flagged. The checks also flag users, roles, and groups that can escalate privileges because they holdiam:PassRolealong with an action that creates a service, such as a Lambda function or an EC2 instance. - AI agents - when agent discovery is enabled for your workspace, the agents you run on Amazon Bedrock AgentCore. See AI agents.
Prerequisites
- An admin user in your AWS management account. The account you sign in with must have these IAM permissions to create the Oleria CloudFormation stack:
cloudformation:CreateStackcloudformation:CreateUploadBucketcloudformation:DescribeStackscloudformation:DescribeStackEventscloudformation:GetStackPolicycloudformation:GetTemplateSummarycloudformation:ListStackscloudformation:ListStackResourcesiam:AttachRolePolicyiam:CreatePolicyiam:CreateRoleiam:ListRolesiam:GetRoleiam:DeleteRolePolicyiam:PutRolePolicys3:GetObjects3:CreateBuckets3:PutObjectsns:ListTopics
- Admin access on the Oleria platform to add a new integration.
Integration approaches
Choose one of two ways to connect:- Connect an AWS organization (recommended) - covers every account in your organization, including accounts you add later.
- Connect a single AWS account - for proofs of concept only.
Connect an AWS organization to Oleria
Sign in to the AWS management account

Copy the Root ID

Launch AWS CloudFormation from Oleria

Create the CloudFormation stack

Wait for stack creation


Navigate to the oleriaOrgConnectorRole

Copy the Role ARN

Update the KMS key policy (if applicable)


Statement array. Don’t replace the whole policy: overwriting it can remove your administrators’ access to the key. Replace <ACCOUNT_ID> with your AWS account ID.
kms:Decrypt and kms:DescribeKey for KMS-encrypted S3 access.Provide the Role ARN in Oleria

Connect a single AWS account to Oleria
Sign in to the AWS account
Launch AWS CloudFormation from Oleria

Create the CloudFormation stack

Wait for stack creation

Navigate to the oleriaConnectorRole

Copy the Role ARN

Update the KMS key policy (if applicable)


Statement array. Don’t replace the whole policy: overwriting it can remove your administrators’ access to the key. Replace <ACCOUNT_ID> with your AWS account ID.
kms:Decrypt and kms:DescribeKey for KMS-encrypted S3 access.Provide the Role ARN in Oleria

Verify the integration
Confirm the AWS IAM and S3 instance appears on the Connected tab of your Oleria Integrations page with a status of Healthy. After the first sync completes, you can review the discovered IAM users, roles, policies, resources, and CloudTrail activity in your Oleria workspace.
AI agents
When agent discovery is enabled for your workspace, Oleria discovers the agents you run on Amazon Bedrock AgentCore and shows them in the Agents inventory. To enable agent discovery, contact support@oleria.com. Oleria reads agents in every AWS account the integration covers, in each Region that is enabled for the account and offers AgentCore.What Oleria discovers about agents
Oleria reports two types of AgentCore agent:- Harness - an agent you define as an AgentCore harness. One harness is one agent, however many runtimes and endpoints AgentCore creates for it.
- Agent Runtime - an agent you deploy to an AgentCore runtime as code or as a container, without a harness.
Permissions for agent discovery
The Oleria CloudFormation template grants the connector role these read permissions. If you manage the role yourself, grant all of them. A missing permission doesn’t fail the sync: Oleria reports what it can read.Update an existing stack
A stack created from an earlier template doesn’t grant every permission on this page: the agent discovery permissions above, and the permissions for disabling AI agents. Update it to the current template. Update the stack in place. Don’t delete it and create it again: a recreated role has a new ID, so every KMS key policy and bucket policy that names the connector role stops applying until you enter the role in it again. The link in Oleria’s edit form launches one of two templates, depending on I authorize Oleria to perform write actions in AWS (recommended). With the checkbox selected, it launches the template that grants the write permissions Oleria’s remediation actions need, including the permissions for disabling AI agents. With the checkbox cleared, it launches a template that grants only some of them, and updating a stack to that template removes the rest. Prerequisites lists the permissions to create the stack. To update it, the account you sign in with also needscloudformation:UpdateStack, and for an organization cloudformation:UpdateStackSet, in the AWS account that holds the stack.
- Organization
- Single account
Copy the template addresses
- Template URL - the template for the organization stack.
TemplateURL, under Parameters - the template for the member accounts.
Update the organization stack
TemplateURL to the value you copied and keep the other parameter values. Acknowledge that the template creates IAM resources, and select Update stack.Wait for the stack’s status to read UPDATE_COMPLETE. The connector role in the management account then has the current permissions.Update the StackSet
TemplateURL value you copied. Keep the parameter values, and acknowledge that the template creates IAM resources.On Set deployment options, select Deploy to organizational units (OUs) and enter the ID you gave Oleria as AWS Organizational Unit ID. For Specify regions, select the Region of the organization stack. Select Submit.Wait for every account
SUCCEEDED. Then check on the Stack instances tab that every stack instance reads CURRENT. An operation that stays within its failure tolerance reads SUCCEEDED even when an account failed.If a stack instance reads OUTDATED, its status reason on the Stack instances tab says why. Fix the cause, then repeat the previous step with Use current template instead of Replace current template to retry it.Confirm in Oleria
Agent activity
Oleria reads agent activity from the same CloudTrail trail as the rest of your AWS activity. In each account it reads one trail: the first multi-Region trail that CloudTrail’sListTrails returns for the account. In an account with no multi-Region trail, it reads one single-Region trail, which holds activity only for that trail’s home Region.
- Agent and credential provider changes are CloudTrail management events. They need no extra setup.
- Workload access tokens: AgentCore obtains a workload access token for an agent, which lets the agent use AgentCore services such as credential providers. CloudTrail records
GetWorkloadAccessTokenas a management event, so it needs no extra setup, and Oleria shows it as activity by that agent. - Agent invocations are CloudTrail data events, which a trail doesn’t log by default. To see who invoked an agent, log data events for the resource type
AWS::BedrockAgentCore::Runtimeon the trail Oleria reads. In an account with more than one multi-Region trail, log them on each of those trails. AWS charges for data events. - Credential retrievals: when the trail holds a
GetResourceApiKeyorGetResourceOauth2Tokenevent, Oleria shows it as a retrieval of that credential by the IAM principal that made the call. Oleria doesn’t attribute it to an agent, because the event names only that principal. CloudTrail records both as management events, so they need no extra setup.
Verify agent discovery
After the next sync completes, open the Agents inventory and filter Application Instance to your AWS integration. Each harness and each agent runtime without a harness appears as one agent. If an agent is missing, check that its Region is enabled for the account, that the connector role in that account holds the permissions above, and that no service control policy in your organization denies them to the role.Agent limitations
- Amazon Bedrock Agents: Oleria discovers AgentCore agents. It doesn’t discover agents built with Amazon Bedrock Agents.
- Identity-based policies: Who Can Use lists access from an agent’s inbound allow list and from resource-based policies. It doesn’t list principals whose own IAM policies allow them to invoke the agent.
- Agents deployed as code: For an agent runtime without a harness, Oleria can’t read the models, tools, or instructions inside your code.
- Earlier versions: Oleria lists an agent’s current version and the versions its endpoints serve or are moving to. It doesn’t list other versions.
- Activity in opt-in Regions: Oleria discovers agents in every Region that is enabled for the account, but reads CloudTrail activity only in the Regions AWS enables by default. An agent in a Region you opted in to appears without activity.
- Requests through a session endpoint: Oleria shows invocations through
InvokeAgentRuntime, and the commands and shells run in an agent’s sessions. It doesn’t show requests through a session endpoint, which CloudTrail records asInvokeAgentRuntimeProxy.
Remediation actions
If you selected I authorize Oleria to perform write actions in AWS (recommended) when you launched the CloudFormation stack, Oleria can take these actions:Permissions for disabling AI agents
Oleria uses these permissions for the Disable agent action, which is being rolled out. If you plan to use it, leave I authorize Oleria to perform write actions in AWS (recommended) selected when you launch the stack, so you don’t have to update the stack when the action arrives. For a stack that is already deployed, see Update an existing stack. Disable agent is available only when agent discovery is enabled for your workspace. The template that Oleria launches with the checkbox selected grants these permissions:iam:PutRolePolicyandiam:DeleteRolePolicy- attach an inline deny-all policy to an agent’s execution role, and remove it on revert.- The harness, runtime, gateway, and resource policy reads among the permissions for agent discovery, with
ec2:DescribeRegions,iam:GetRole,iam:ListRolePolicies,iam:GetRolePolicy, andiam:SimulatePrincipalPolicy- read the agent, its execution role, and the role’s policies, and check the connector role’s own permissions.
iam:GetAccountAuthorizationDetails. As part of the same rollout, the sync reads the inline policies of your IAM roles with it, so that a role carrying a deny-all policy shows as disabled after the next sync.
With the checkbox cleared, Oleria refuses every write action on the integration, except reverting an action it already ran.
How Disable agent stops an agent
Disable agent, which is being rolled out, stops an agent in a way that depends on the agent’s type:- Agent Runtime: Oleria adds the deny statement to the runtime’s resource-based policy. It also attaches the inline deny-all policy to the agent’s execution role when the role is the agent’s alone. When it isn’t, Oleria leaves the role as it is, and the agent is still disabled.
- Harness: Oleria stops a harness only through its execution role, by attaching the inline deny-all policy. When the role isn’t the harness’s alone, or the harness’s endpoints serve versions that run as different execution roles, Oleria refuses the action and says why.
- The role is in the same AWS account as the agent.
- The role isn’t the role this integration connects with.
- The role’s trust policy lets only
bedrock-agentcore.amazonaws.comassume it. A role that a Lambda function, an ECS task, a person, or another service can assume doesn’t qualify. - No other harness, agent runtime, gateway, memory, custom code interpreter, custom browser, online evaluation configuration, consent portal, payment manager, or capacity provider that Oleria can read, in any Region enabled for the account, uses the role.
- New calls: AgentCore refuses each new call to a runtime whose policy carries the deny statement: invoking it over HTTP or a WebSocket stream, and running a command or opening a shell in one of its sessions, including a call that continues an existing session. An explicit deny overrides every allow. The statement also denies
bedrock-agentcore:InvokeAgentRuntimeProxy, the permission that requests through a session endpoint need. - AWS access: AWS refuses every API call made as an execution role that carries the deny-all policy, including calls from a session that is already running, because it evaluates the role’s permissions on each request. A policy change can take a few minutes to take effect.
- Running sessions: Oleria doesn’t stop a session that is already running. The session stays up until AgentCore ends it, for inactivity or at its maximum lifetime, and code in it can keep running until then. To end it sooner, stop the session in AgentCore with
StopRuntimeSession.

