This is a repository, conatining cloudformation scripts to deploy a highly available web application on Amazon Web Services platform. This repository was made, as a part of my Nanodegree project with Udacity.
The architecture diagram has been provided in the repository, in the name of WebApp.jpeg. I used a Website, named Lucid.com to design my own Achitecture diagram.
Here are some of the requirements, to run these scripts on your local machine:
- Download a text editor like Microsoft Visual Studio Code. Link to download Microsoft Visual Studio Code: https://code.visualstudio.com/
- Set up an Amazon Web Services account. Here's link to create your AWS account: https://portal.aws.amazon.com/billing/signup#/start
- Set AWS Command Line Interface on your device. Download AWS CLI tool using the link: https://aws.amazon.com/cli/.
- Use the following command in your command prompt or terminal of your VS Code to set-up your AWS account.
$ aws configure
- Follow the steps to create Access Key and Secret Access Key in IAM, using the following link: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#cli-quick-configuration
- Downlaod Create command file and Update command file into the same working directory, as the CloudFormation Scripts.
- Make sure that, the present working directory of your VS Code terminal, be same as the directory, where scripts are present.
- Now, to depoy/create the cloud formation stack, write command:
$ ./create.sh <name-of-the-stack> <name-of-the-template-flie-in-yml> <name-of-the-parameters-file-in-json>
- Make sure, to first deply WebApp-Network.yml infrastruture, before deploying WebApp.yml scripts. And make sure to run WebApp-Network-Paramters.json with WebApp-Network.yml and WebApp-Paramters.json with WebApp.yml.
- To update the created stack, run the following command:
$ ./update.sh <name-of-the-stack> <name-of-the-template-flie-in-yml> <name-of-the-parameters-file-in-json>
- You can check AWS console, and go AWS Cloud Fomation to check if your cloud formation stack has been deployed, or not.
- If the stack dosen't get deployed, check the logs of CloudFormation stack, to check for the error in script.
Link to website: http://webap-webap-1dv4b250l3nc6-1257434246.us-west-2.elb.amazonaws.com/ (The link will not work now, since I've taken down the stack after the review of my project, to avaid extra costs)