This device is not compatible.

PROJECT


Deploy a Flask Application over AWS Using SAM

In this project, we'll deploy an e-learning course catalog website developed using Flask over the AWS cloud following Serverless Application Model (SAM). We'll use different AWS commands on the CLI. Through this project, we'll learn to create AWS Lambda functions, IAM users, and API Gateways.

Deploy a Flask Application over AWS Using SAM

You will learn to:

Apply the fundamentals of cloud formation.

Explore the basics of serverless architecture.

Configure and restructure a Flask application to make it ready for deployment.

Use AWS and SAM CLI commands to build and deploy a serverless application to the cloud.

Skills

Cloud Deployment

Web Frameworks

Using AWS Cloud Services

Prerequisites

Basic understanding of the Flask framework

Basic understanding of serverless applications

Basic understanding of AWS CLI

Basic understanding of AWS cloud formation

Technologies

Flask

Python

AWS SAM

Amazon S3

AWS Lambda

Project Description

In this project, we’ll deploy a custom Flask application to the Amazon Web Services (AWS) cloud. The application is an e-learning course catalog website. We’ll configure and install necessary packages and make this application ready to be deployed on the cloud using AWS SAM command-line tools. The Serverless Application Model (SAM) is a comprehensive tool for serverless deployment and debugging. SAM offers cost-effectiveness, robustness, and built-in fault tolerance and security.

Each course on the customs website will have a title, an image, an author name, a status indicating whether it is paid or free, a description, and a “Visit Website” button. The website will also allow users to search the available courses with a search bar.

The image below shows the final layout of the website, which will be hosted on a dynamic URL.

Custom application deployed on AWS

Disclaimer: For most users, the AWS services used in the project are free, but a few users might be charged for some services. Please follow the links below for pricing information:

Project Tasks

1

Setup and Configuration

Task 0: Initial Setup

Task 1: AWS CLI Configuration

Task 2: SAM Initialization

Task 3: Restructure the Flask Application

Task 4: Adding Dependencies

Task 5: Create Lambda Function Handler

2

Build and Deploy the Serverless Application

Task 6: Build the Serverless Application

Task 7: Invoke Lambda Function Locally

Task 8: Deploy the Application

Task 9: Delete the SAM Stack

Congratulations!

has successfully completed the Guided ProjectDeploy a Flask Application over AWS UsingSAM

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.