S3 Bucket

We'll store our pre-processing script and other data in an S3 bucket in the us-east-1 region. Follow the getting started guide to create a bucket in the us-east-1 region. The bucket should NOT be public. We'll refer to the bucket as BUCKET going forward.

Download the pre-processing script to a working directory and then upload it to S3.

aws s3 cp kmeans_preprocessing.py s3://BUCKET/mnist_kmeans_example/processing_code/kmeans_preprocessing.py