Skip to content

NicklausBrain/aws-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-snake

AWS & CDK evaluation project

Prerequisites

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"sudo installer -pkg AWSCLIV2.pkg -target /
  • Configure AWS CLI using the created access key
aws configure
brew install node # mac
sudo apt-get install nodejs # debian
  • Install AWS CDK toolkit
npm install -g aws-cdk
  • Install the target SDK/Runtime (in our case TypeScript)
npm install -g typescript

Deploying from the local env

  • open repository root folder
cd aws-snake
  • install api node modules
(cd ./snake-api && npm install)
  • build api project
(cd ./snake-api && npm run build)
  • install cdk node modules
(cd ./snake-iac && npm install)
  • deploy the CDK toolkit stack into an AWS environment
(cd ./snake-iac && cdk bootstrap)
  • compare local and remote stack configs
(cd ./snake-iac && cdk diff)
  • deploy the stack to AWS
(cd ./snake-iac && cdk deploy)

Accessing live application

  • Get application entry point
aws apigatewayv2 get-apis
  • Access the game at <ApiEndpoint> returned by get-apis command
  • Access swagger at <ApiEndpoint>/swagger/

Configuring CI/CD

About

AWS & CDK evaluation project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published