In order to deploy project you will need the following tools:
- Node.js
- AWS CLI
- AWS credentials
You can check if your environment is ready with make check
Code is written in TypeScript, so you have to install modules with make install
In order to perform deployments additional resources have to be created in AWS with make bootstrap
Code that describes infrastructure resides within cloud/ forder so navigate to that folder for deployments
In order to create resources from preview two stacks have to be deployed
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.
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.
In order to deploy current application version to the ElasticBeanstalk run npm run deploy-version App. It will:
- Prepare *.zip with project files
- Replace version in AWS
- Deploy new version to environment
After you're done always delete resources in the following order
npm run cdk destroy App
npm run cdk destroy Sandbox
