Code for provisioning the two platforms.
The code to provision DigitalOcean and AWS EC2 is in the two files
To automate the process of creating the two servers and displaying their IP Adresses simultaneously, I have created a bash script to run the commands:
To run the programs do the following:
npm install bash script
Configuration management of repo.
Instead of uploading the Node_modules folder there is package.json file to resolve the dependencies of the project.
Screencast of the procedure
The Link to the screencast is: