https://github.com/thesoftwarehouse/tsh-academy-serverless
https://github.com/thesoftwarehouse/tsh-academy-serverless
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thesoftwarehouse/tsh-academy-serverless
- Owner: TheSoftwareHouse
- License: mit
- Created: 2022-05-05T07:13:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T13:35:08.000Z (over 2 years ago)
- Last Synced: 2025-04-06T20:12:48.175Z (about 2 months ago)
- Language: TypeScript
- Size: 9.45 MB
- Stars: 3
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:**
- Brew - https://brew.sh/
- AWS CLI - docs https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
- AWS CLI - Brew https://formulae.brew.sh/formula/awscli
- Node.js - Brew https://formulae.brew.sh/formula/node
- VS Code - https://code.visualstudio.com/
- AWS Toolkit for VS Code - https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/setup-toolkit.html### 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: ``
- AWS 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=`
- fill in `ACCOUNT_ID`: `ACCOUNT_ID=`
- 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](https://eu-west-1.console.aws.amazon.com/states/home?region=eu-west-1#/statemachines):
* 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](tasks/task-1.md)!
### **About us:**
##
### License
[](https://raw.githubusercontent.com/TheSoftwareHouse/serverless-boilerplate/main/LICENSE)
This project is licensed under the terms of the [MIT license](/LICENSE).