Skip to content

Demo project - AWS serverless - CD with Github Actions

Notifications You must be signed in to change notification settings

hootisfix/amazing_storm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazing Storm - Terraform

This project can be used to deploy:

  • web application
  • backend with a database
  • infrastructure as a code

Both frontend and backend are built with nodeJS, AWS architecture is deployed with terraform.

AWS Architecture

serverless-archi

TODO:

  • Create route 53 with delegation of:
    • production-tempete-de-direct.savarit.net
    • backend.production-tempete-de-direct.savarit.net
  • Manage CNAME creation in terraform

Continuous deployment

CD is done using Github actions.

Workflows are defined in .github/workflow/ :

  • Node workflow to build & deploy frontend (S3)
  • Terraform workflow to deploy AWS architecture

Workflows are triggered when a push occurs on the master branch.

TODO:

  • Workflow to ZIP backend and copy to S3
  • Add test + validation in workflows
  • PR analysis + build
  • Create other env. ex: develop (git) => staging (AWS)

Frontend

Frontend is a basic Hello word.

TODO:

  • Create a real application
  • Link it to the backend

Backend

Backend is a simple script that can read or write in a database.

Usage: curl -X POST -d '{"operation":"write","id":"1","name":"ram"}' https://6tmkr99l3e.execute-api.eu-west-1.amazonaws.com/production/myresource curl -X POST -d '{"operation":"read","id":"1"}' https://6tmkr99l3e.execute-api.eu-west-1.amazonaws.com/production/myresource

About

Demo project - AWS serverless - CD with Github Actions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published