Skip to content

Latest commit

 

History

History
 
 

DevOps

Serverless DevOps Workshop

In this workshop you'll deploy a RESTful API that enables users to manage the Wild Rydes Unicorn Stable. You will use the Serverless Application Model (SAM) to deploy the API interfaces, business logic, and database into your AWS account. The RESTful API will allow a user to list, create, view, update, and delete the unicorns in the Wild Rydes stable.

The application architecture uses AWS Lambda, Amazon API Gateway, and Amazon DynamoDB. The API is built using Lambda and API Gateway, using DynamoDB as a persistent data store for unicorn data.

See the diagram below for a depiction of the API architecture.

Wild Rydes DevOps RESTful API Application Architecture

The DevOps Continuous Delivery Pipeline uses AWS CodePipeline, AWS CodeBuild, and Amazon S3. CodePipeline orchestrates the steps to build, test, and deploy your code changes. CodeBuild compiles source code, runs tests, and produces software packages that are ready to deploy to environments.

If you'd like to jump in and get started please visit the CodeStar Project module page to begin the workshop.

Prerequisites

AWS Account

In order to complete this workshop you'll need an AWS Account with access to create AWS IAM, S3, DynamoDB, Lambda, API Gateway, CodePipeline, and CodeBuild resources. The code and instructions in this workshop assume only one student is using a given AWS account at a time. If you try sharing an account with another student, you'll run into naming conflicts for certain resources. You can work around these by appending a unique suffix to the resources that fail to create due to conflicts, but the instructions do not provide details on the changes required to make this work.

All of the resources you will launch as part of this workshop are eligible for the AWS free tier if your account is less than 12 months old. See the AWS Free Tier page for more details.

AWS Command Line Interface

To complete the first module of this workshop you'll need the AWS Command Line Interface (CLI) installed on your local machine. You'll use the CLI to copy objects into your S3 website bucket.

Follow the AWS CLI Getting Started guide to install and configure the CLI on your machine.

Browser

We recommend you use the latest version of Chrome or Firefox when testing the web application UI.

Text Editor

You will need a local text editor for making minor updates to configuration files.

Modules

This workshop is broken up into multiple modules. You must complete each module before proceeding to the next.

  1. CodeStar Project
  2. Serverless Application Model (SAM)
  3. Continuous Delivery Pipeline
  4. AWS X-Ray Integration

After you have completed the workshop you can delete all of the resources that were created by following the cleanup guide.