Skip to content

team-tenacious/aws-cdk-example-deployment-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-cdk-example-deployment-js

A javascript example of using aws cdk to deploy multiple docker containers that are able to communicate with each other, this is shameless porting of Jeff Bryner's great python example - please read his detailed article here - thanks Jeff, you saved me many hours!

assumptions

  • you have git installed
  • you have nodejs and npm installed
  • you have the latest cdk installed

to make it go

git clone https://github.com/team-tenacious/aws-cdk-example-deployment-js.git
cd aws-cdk-example-deployment-js
npm i

# if you've not used cdk before you may need to bootstrap it into
# your aws environment (creates s3 bucket for cloud formation templates, etc)

cdk bootstrap

# test run to see if it creates a template
cdk synth

# if it's good, then deploy
cdk deploy

# it should warn you about upcoming changes and ask you to accept (a security precaution)
# at the end of the deployment you'll get outputs to the two loadbalanced services
# copy the url for the 'frontend' one, toss it into your browser and you should see the demo page

# clean up with a
cdk destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published