> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.cloudquant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# S3 Bucket Setup

> How to set up your S3 bucket so that CloudQuant Data Liberator can connect and read data from it

# S3 bucket setup for CloudQuant Data Liberator

This guide walks you through setting up your Amazon S3 bucket for use with the CloudQuant Data Liberator platform.

## Prerequisites

* An AWS account with S3 access
* IAM permissions to create buckets and manage policies
* Your CloudQuant account credentials

## Step 1: Create an S3 bucket

1. Navigate to the [AWS S3 Console](https://s3.console.aws.amazon.com/)
2. Select **Create bucket**
3. Select a unique bucket name and region
4. Configure bucket settings as needed

## Step 2: Configure bucket policy

Add a bucket policy that grants CloudQuant Data Liberator read access:

```json theme={null}
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::CLOUDQUANT_ACCOUNT_ID:root"
      },
      "Action": [
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::your-bucket-name",
        "arn:aws:s3:::your-bucket-name/*"
      ]
    }
  ]
}
```

<Note>
  Contact CloudQuant support for the correct AWS Account ID to use in the bucket policy.
</Note>

## Step 3: Configure CORS (if needed)

If accessing data from web applications, configure CORS:

```json theme={null}
[
  {
    "AllowedHeaders": ["*"],
    "AllowedMethods": ["GET"],
    "AllowedOrigins": ["*"],
    "ExposeHeaders": []
  }
]
```

## Step 4: Generate access keys

1. Navigate to IAM in the AWS Console
2. Create a new IAM user or use an existing one
3. Generate an Access Key ID and Secret Access Key
4. Provide these credentials to CloudQuant securely

## Step 5: Verify connectivity

Contact CloudQuant support to verify that CloudQuant Data Liberator can successfully connect to your S3 bucket.

## Troubleshooting

| Issue            | Solution                                       |
| ---------------- | ---------------------------------------------- |
| Access Denied    | Verify bucket policy and IAM permissions       |
| Bucket Not Found | Confirm bucket name and region                 |
| Timeout          | Check network connectivity and security groups |
