This lab focuses on updating the application code developed for the grid-maker application. After testing the application to create a new grid image locally, you update the application code to use images stored in an Amazon Simple Storage Service (Amazon S3) bucket instead. You verify the functionality of the application by accessing images stored in an S3 bucket, creating a new grid image, and generating an S3 presigned URL to view the grid image that gets stored in a separate S3 bucket.
Level
Intermediate
Duration
1 hour 30 minutes
Course objectives
By the end of this lab, you will be able to do:
   •   Update Python code to list objects in an S3 bucket.
   •   Update Python code to get objects in an S3 bucket.
   •   Update Python code to put objects in an S3 bucket.
   •   Update Python code to create an S3 presigned URL for an image to be viewed in a browser.
Intended Audience
This course is intended for:
   •   Developers
Prerequisites
To successfully complete this lab:
   •   You should be familiar with basic navigation of the AWS Management Console.
   •   You should be comfortable editing and running scripts by using an AWS Cloud9 code editor and terminal.
   •   You should have a basic understanding of and familiarity with Amazon S3.
Course outline
   •   Task 1: Run the application to store the image locally
   •   Task 2: Update the main.py code
   •   Task 3: Run the updated application