3 Create a bucket for Cloudfront logs - OXYGEN-MARKET/oxygen-market.github.io GitHub Wiki

HOME » SNOWPLOW SETUP GUIDE » Step 1: setup a Collector » Setup the Cloudfront collector » 1. Setup a bucket on S3 for the pixel » 2. Upload the Tracking Pixel » 3. Create a bucket for the Cloudfront logs

Click on the Create bucket button again, this time to create a second bucket for storing the log files that Cloudfront will generate. Give the bucket a suitable name.

Alternative approach: AWS CLI

Alternatively, the above step could be achieved with the following AWS CLI command.

To create a bucket in a specific region:

$ aws s3 mb s3://snowplow-logs-demo --region us-west-1

The list of available regions could be obtained by executing:

$ aws ec2 describe-regions | grep 'RegionName'

You could also view it on the Amazon doc page.

If the bucket name is available you will get a confirmation on creation:

make_bucket: s3://snwplw-logs-demo/

You can view the content of the bucket:

$ aws s3 ls s3://snwplw-logs-demo

As no object has been uploaded yet, an empty list (shell prompt) is returned.

All done?

Proceed to step 4: create a Cloudfront distribution.

Return to an overview of the Cloudfront Collector setup.

Return to the setup guide.

⚠️ **GitHub.com Fallback** ⚠️