Skip to main content
Connect your AWS organization or a single AWS account to Oleria so it can build a continuously updated map of IAM users, roles, policies, EC2 instances, S3 bucket access, and CloudTrail activity. This page covers both integration approaches; the organization-level approach is recommended for production.

What Oleria discovers

  • Identities - IAM users and roles.
  • Policies - IAM policies and the access they grant.
  • Resources - EC2 instances and S3 buckets, including who can access each bucket.
  • Activity - AWS CloudTrail events.

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:CreateStack
    • cloudformation:CreateUploadBucket
    • cloudformation:DescribeStacks
    • cloudformation:DescribeStackEvents
    • cloudformation:GetStackPolicy
    • cloudformation:GetTemplateSummary
    • cloudformation:ListStacks
    • cloudformation:ListStackResources
    • iam:AttachRolePolicy
    • iam:CreatePolicy
    • iam:CreateRole
    • iam:ListRoles
    • iam:GetRole
    • iam:DeleteRolePolicy
    • iam:PutRolePolicy
    • s3:GetObject
    • s3:CreateBucket
    • s3:PutObject
    • sns:ListTopics
  • Admin access on the Oleria platform to add a new integration.
Use a service account (and not an employee account) with the suggested privileges for the integration to ensure continuity.

Integration approaches

Choose one of two ways to connect:

Connect an AWS organization to Oleria

1

Sign in to the AWS management account

Sign in as an admin user to the AWS management account that you’ll connect to Oleria.Select the user in the top right corner, and select Organization.AWS console account menu in the top right corner with Organization highlighted
2

Copy the Root ID

Copy the Root ID for your organization from the AWS Organizations console.AWS Organizations console showing the organization Root ID
3

Launch AWS CloudFormation from Oleria

Sign in to your Oleria workspace. Select Integrations -> select AWS IAM and S3. A side page opens - select Organization (Recommended), paste the Root ID where the integration asks for the organization unit ID, and select Launch AWS CloudFormation.To let Oleria take remediation actions, also select I authorize Oleria to perform write actions in AWS before you select Launch AWS CloudFormation. Oleria then launches a template that grants the connector role the write permissions its remediation actions need.Oleria workspace AWS integration panel with Organization scope and Root ID field
4

Create the CloudFormation stack

AWS opens. The stack name Oleria-Plugin-SaaS-Connector is preselected. Acknowledge and select Create Stack.AWS CloudFormation stack creation with Oleria-Plugin-SaaS-Connector pre-selected
5

Wait for stack creation

Stack creation takes about a minute.CloudFormation stack with CREATE_COMPLETE status for the organization setup
Before adding stacks, verify the StackSet’s configuration. For the integration to automatically apply to new AWS accounts added to your organization in the future, ensure auto-deployment is active.In the CloudFormation console, open StackSets from the left menu. Select the Oleria-Plugin-SaaS-Connector-Org StackSet. Under Deployment configuration, select Edit automatic deployment and set Automatic deployment to Activated.
CloudFormation StackSets page with Oleria-Plugin-SaaS-Connector selected
6

Navigate to the oleriaConnectorRole

Select the Resources tab and navigate to the oleriaConnectorRole.CloudFormation stack Resources tab listing oleriaConnectorRole for the organization setup
7

Copy the Role ARN

Copy the oleriaConnectorRole ARN.IAM role summary for oleriaConnectorRole with the ARN copy button, organization setup
8

Update the KMS key policy (if applicable)

This step is required only if the S3 bucket is encrypted with a KMS key. Add a statement to the KMS key policy that allows the Oleria connector role to use the key. Repeat these CloudTrail and KMS key policy steps for each AWS account that uses an encrypted trail.Search CloudTrail -> select Management Events.CloudTrail trail details showing the management events configuration, organization setup
If you have multiple trails, select the first trail and check for an encrypted KMS key. If S3 is encrypted, you will see a KMS key link.
Select the AWS KMS key link.CloudTrail trail settings with the AWS KMS key link, organization setupSelect Edit on the key policy and add the following statement to the existing 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 key policy editor with the Oleria statement added, organization setupThis policy allows the Oleria connector role to use kms:Decrypt and kms:DescribeKey for KMS-encrypted S3 access.
9

Provide the Role ARN in Oleria

Return to your Oleria workspace and paste the Role ARN you copied. Select Confirm that the role is created using CloudFormation successfully, then select Authenticate.Oleria AWS connection form with the Role ARN field and the CloudFormation confirmation checkbox selected, organization setup

Connect a single AWS account to Oleria

This approach connects a single AWS account and is intended for POC use only. You will not get the full value of Oleria with this method. For production deployments and complete visibility across your AWS environment, Oleria recommends connecting an AWS organization instead.
1

Sign in to the AWS account

Sign in as an admin user to the AWS account you want to connect to Oleria.
2

Launch AWS CloudFormation from Oleria

In the same browser, open a new tab and sign in to your Oleria workspace. Select Integrations -> select AWS IAM and S3. A side page opens - select Account from the Connector scope dropdown and select Launch AWS CloudFormation.To let Oleria take remediation actions, also select I authorize Oleria to perform write actions in AWS before you select Launch AWS CloudFormation. Oleria then launches a template that grants the connector role the write permissions its remediation actions need.Oleria workspace AWS integration panel with account-level scope selected
3

Create the CloudFormation stack

AWS opens. The stack name Oleria-Plugin-SaaS-Connector is preselected. Acknowledge and select Create Stack.AWS CloudFormation stack creation page for account-level integration
4

Wait for stack creation

Stack creation takes about a minute.CloudFormation stack with CREATE_COMPLETE status for the single-account setup
5

Navigate to the oleriaConnectorRole

Select the Resources tab and navigate to the oleriaConnectorRole.CloudFormation stack Resources tab listing oleriaConnectorRole for the single-account setup
6

Copy the Role ARN

Copy the oleriaConnectorRole ARN.IAM role summary for oleriaConnectorRole with the ARN copy button, single-account setup
7

Update the KMS key policy (if applicable)

This step is required only if the S3 bucket is encrypted with a KMS key. Add a statement to the KMS key policy that allows the Oleria connector role to use the key.Search CloudTrail -> select Management Events.CloudTrail trail details showing the management events configuration, single-account setup
If you have multiple trails, select the first trail and check for an encrypted KMS key. If S3 is encrypted, you will see a KMS key link.
Select the AWS KMS key link.CloudTrail trail settings with the AWS KMS key link, single-account setupSelect Edit on the key policy and add the following statement to the existing 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 key policy editor with the Oleria statement added, single-account setupThis policy allows the Oleria connector role to use kms:Decrypt and kms:DescribeKey for KMS-encrypted S3 access.
8

Provide the Role ARN in Oleria

Return to your Oleria workspace and paste the Role ARN you copied. Select Confirm that the role is created using CloudFormation successfully, then select Authenticate.Oleria AWS connection form with the Role ARN field and the CloudFormation confirmation checkbox selected, single-account setup

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. Oleria workspace Connected Integrations showing newly added AWS IAM and S3

Remediation actions

If you selected I authorize Oleria to perform write actions in AWS when you launched the CloudFormation stack, Oleria can take these actions:

Contact us

For questions about this integration, contact us at support@oleria.com.