How to authenticate to an AWS S3 bucket
Prerequisites
To connect AWS S3 with Rhombus AI, you need to:
- Create S3 bucket.
- Create IAM policy.
- Create IAM user.
- Generate your Access key and Secret Key.
- Get your bucket name.
Step 1. Create Bucket
Create a bucket in S3 and get the container name.

Step 2. Create IAM Policy
You must create an IAM policy for both the IAM Role and Access Key and Secret approaches.
-
Go to Identity and Access Management (IAM) → Policies and click Create Policy.

-
Go to the JSON tab.
-
Copy the following policy and paste it into the visual editor. Replace
{your-bucket-name}with the name of your S3 bucket. After that, click Next.{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:GetBucketLocation", "s3:GetObject", "s3:ListBucket", "s3:PutObject"],
"Resource": [
"arn:aws:s3:::{your-bucket-name}/*",
"arn:aws:s3:::{your-bucket-name}"
]
}
]
}Note: The
s3:PutObjectpermission is optional, but it's essential if you need to save files to the bucket.
-
Enter a meaningful name to identify this policy.

-
Create a policy.
Step 3. Create IAM User
-
In the Users tab, click to create user.
-
In the Attach policies directly tab, attach the created policy.

-
Click Next, then click Create user.
Step 4. Generate your Access key and Secret Key
-
In the Users tab, open the created User.
-
Go to Security credentials tab and navigate to the Access keys.

-
Select third-party service.

-
Retrieve Access key & Secret access key
