# Connect Amazon S3 | Connect your data guides
Source: https://greenpixie.com/docs/guides/connect-data/aws

How to grant Greenpixie access to your S3 bucket.

Connect an Amazon S3 bucket you own so Greenpixie can read your `input` data and write the enriched file to `output`.

## Create a bucket [#create-a-bucket]

Create or select an existing Amazon S3 bucket to use for input and output data. See the AWS guide to [creating a bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html).

## Bucket name [#bucket-name]

Your bucket name should include your company or team name.

For example, `abc-corp-cur-data`.

## Bucket settings [#bucket-settings]

Apply the following so that IAM controls access, with ACLs and public access disabled:

* ACLs disabled
* Block all public access

See [blocking public access to your S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-bucket.html).

## Grant Greenpixie access [#grant-greenpixie-access]

In the Greenpixie environment there is a dedicated IAM user for each data connection, and you grant this principal read and write access on your bucket through a bucket policy.

Your Greenpixie contact provides the `role-arn`. `bucket-name` is the name of the bucket you created. Add the policy to your bucket, following the AWS guide to [adding a bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/userguide/add-bucket-policy.html).

```json
{
  "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}/*"
      ]
    }
  ]
}
```

## Details to send Greenpixie [#details-to-send-greenpixie]

Send your bucket name to your Greenpixie contact.

## Next steps [#next-steps]

Once connected, Greenpixie enriches your data daily between 01:00 and 04:00 UTC, processing the month-to-date. Your Greenpixie contact will confirm the connection and the enrichment cadence.

- [Getting your cloud usage data](https://greenpixie.com/docs/guides/cloud-usage-data): Set up or revisit the export that feeds the `input` folder.