# Amazon S3 connection | CUR enrichment reference
Source: https://greenpixie.com/docs/reference/cur-enrichment/s3-connection

How to connect your Amazon S3 bucket to Greenpixie.

## Overview [#overview]

This page describes how to setup a single Amazon S3 bucket. If you wish to use separate buckets for input/output, please follow this guide twice.

## Creating a bucket [#creating-a-bucket]

Create or select an existing Amazon S3 bucket to use for input/output data.

### Bucket name [#bucket-name]

The bucket name can be anything, but please include your company/team name.

Example: `abc-corp-cur-data`

### Bucket default settings [#bucket-default-settings]

Apply the following settings to ensure IAM permissions are

* ACLs disabled
* Block all public access

## Bucket policy/permissions [#bucket-policypermissions]

Access is provided to Greenpixie via a bucket policy.

In the Greenpixie environment, we have a dedicated IAM user for each data connection. On the customer bucket, read/write access is granted to this principal.

<img alt="S3 Diagram" src="/content-images/reference/cur-enrichment/(storage-platforms)/s3-diagram.png" width="3438" height="2355" />

### Bucket policy [#bucket-policy]

`role-arn` will be provided by your Greenpixie contact. `bucket-name` is the name of the bucket you created.

```json
// [!code word:{role-arn}]
// [!code word:{bucket-name}]
{
    "Version": "2012-10-17",
    "Statement": [{
        "Sid": "AllowGreenpixie",
        "Effect": "Allow",
        "Principal": {
        "AWS": [
            "{role-arn}",
        ]
        },
        "Action": [
            "s3:ListBucket",
            "s3:GetObject",
            "s3:PutObject",
            "s3:GetBucketLocation",
            "s3:ListBucketMultipartUploads",
            "s3:ListMultipartUploadParts",
            "s3:AbortMultipartUpload"
        ],
        "Resource": [
            "arn:aws:s3:::{bucket-name}",
            "arn:aws:s3:::{bucket-name}/*",
        ]
    }]
}
```

## Next step [#next-step]

Provide the following details to your Greenpixie contact:

* Bucket name

Next, [format and place your billing data](/reference/cur-enrichment/format-and-structure) in the bucket. Or, create more connections with other storage platforms.

Correct format and directory structure is essential for Greenpixie CUR enrichment to succeed.

When you're ready, please send your bucket name to your contact at Greenpixie.

***