Prerequisites
This method works only for a self-hosted Onyx that runs on an Amazon EC2 instance. It is not available on Onyx Cloud.- Ensure your EC2 instance has an IAM role attached.
- Verify the instance profile is properly configured via AWS Console under EC2 › Instance Settings › Attach/Replace IAM role.
Updating the Existing IAM Role
Your EC2 instance already has an IAM role attached. Add the S3 permissions to it:1
Attach S3 policy
In AWS Console, go to IAM › Roles and open your EC2 instance’s existing role. Go to the Permissions tab.
Click Add permissions › Attach policies. Search for and select AmazonS3ReadOnlyAccess policy.
Click Attach policies.
1
Create inline policy
In the same role’s Permissions tab, click Add permissions › Create inline policy.
Switch to JSON and add this policy (replace Name the policy (e.g.,
your-source-bucket-name):OnyxS3Access) and click Create policy.Credential Entry in Onyx
When you create the authentication account for the S3 connector in Onyx:1
No credentials required
Select the Assume Role tab, enter a Display Name, and select Create.
The connector uses the role attached to your EC2 instance.
