Skip to content

uvsy-aws-backend/infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universy AWS Infrastructure

serverless License: GPL v3

This is the project where we manage our IaC. For this we use terraform and serverless

Terraform Stack Deploy

With terraform we create the base structure:

  • Amazon API Gateway
  • Cognito Userpool and clients
  • S3 buckets
  • IAM Roles

Instalation

In order to get the instalation of terraform you'll need to download the terraform cli from here

AWS plugin

To get the aws plugin and the necesary configuration for terraform, cd to the folder terraform and run:

terraform init

Workspaces

To create and set a workspace (aka stage), you can perform:

  • terraform workspace new <ws>
  • terraform workspace select <ws>

Where <ws> is the desired workspace

Deploy

Simply run:

terraform apply

You need to have AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

Serverless Stack Deploy

With serverless we create the logic and storage:

  • AWS Lambda
  • DynamoDB
  • DynamoDB Streams

Structure

The project and the version to deploy are in the file:

./serverless/deploy.properties

Deploy

In order to deploy all of the projects declared in deploy.properties first:

cd serverless

Then run:

./deployStack.sh

About

Project to manage IaC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors