Skip to content

bpohoriletz/prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preview

AWS Cloud

Setup

In order to deploy project you will need the following tools:

  • Node.js
  • AWS CLI
  • AWS credentials

Step 1 - Verify environment

You can check if your environment is ready with make check

Step 2 - Install Node.js dependencies

Code is written in TypeScript, so you have to install modules with make install

Step 3 - Prepare AWS environment

In order to perform deployments additional resources have to be created in AWS with make bootstrap

Deployments

Code that describes infrastructure resides within cloud/ forder so navigate to that folder for deployments

Infrastructure

In order to create resources from preview two stacks have to be deployed

Stack 1 - Sandbox

By design this stack should include shared resources (e.g. used by other stacks). Default verson includes VPC and resources required for it to function.

Stack 2 - App

This stack is an Elastic Beanstalk envrironmnet where app will be deployed as well as other resources (such as roles) required for it to function.

For both stacks you can view list of resources with npm run cdk diff StackName. In order to create resourses in AWS run npm run cdk deploy StackName and confirm roles/permissions change.

Application

In order to deploy current application version to the ElasticBeanstalk run npm run deploy-version App. It will:

  1. Prepare *.zip with project files
  2. Replace version in AWS
  3. Deploy new version to environment

Cleanup

After you're done always delete resources in the following order

npm run cdk destroy App
npm run cdk destroy Sandbox

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published