3 create a bucket for cloudfront logs - chuwy/snowplow-ci GitHub Wiki
HOME > SNOWPLOW SETUP GUIDE > Step 1: setup a Collector > [Setup the Cloudfront collector](setting up the cloudfront collector) > 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.
Proceed to step 4: create a Cloudfront distribution.
Return to an overview of the Cloudfront Collector setup.
Return to the setup guide.