Skip to content

TheSoftwareHouse/tsh-academy-serverless

Repository files navigation

TSH Academy - Serverless Workshops

Greetings! Welcome to TSH Academy workshops. This repository contains the code necessary for following along with the presentation. If by any chance you get lost, we have prepared separate branches with every task, so you can verify your solution or start over.

What you'll learn

The goal of today's workshop is to learn what Step Function are and how they work. We're going to show you how to define state machines and develop business flows by orchestrating Lambda functions into both simple and complex processes.

Serverless Framework - Development flow

During the workshop, we are going to show you how to effectively work with Serverless Framework and use it to deploy CloudFormation stack. We're going to present some methods of development and how it differs from container based development.

Requirements:

To follow along with the presentation please make sure to have installed:

  • brew
  • node.js (>= 14.16.1, < 15.0.0)
  • npm (>= 6.14.12)
  • git
  • AWS CLI
  • AWS Toolkit
  • VS Code

Resources:

How to set up

  • checkout onto branch task/1: git checkout task/1
  • install dependencies by running npm install
  • after you've received a studentXX.csv from us (if you haven't, scream out loud!) use its contents to:
    • configure a new profile for executing AWS CLI commands by running aws configure --profile tsh-workshops and entering the following it the prompt:
      • AWS Access Key ID: <the Access key ID>
      • AWS Secret Access Key: <the "Secret access key">
      • Default region name: eu-west-1
      • Default output format: the default None is fine, just press Enter
    • set environment variables:
      • run cp .env.dist .env
      • fill in STUDENT_NAME: STUDENT_NAME=<the "User name" from the credentials file>
      • fill in ACCOUNT_ID: ACCOUNT_ID=<the 12-digit number at the start of "Console login link" in the credentials file>
      • please, leave the other variables as they are, so we can easily identify your resources after you've deployed them on AWS :)
    • deploy the whole application stack by running npx sls deploy --aws-profile=tsh-workshops.

When deployed successfully, you will see the deployed step function in AWS Console:

  • Log in, using the User name and Password we sent you.
  • You will then be asked to change your password upon your first login.
  • In the list of AWS services, find Step Functions and look for one with your username in it.

With the environment set up, you can proceed to your first task!

About us:

The Software Housetsh.png

License

license

This project is licensed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •