Skip to content

mustafaDevop/high-availability-web-app

Repository files navigation

Project Title - Deploy a high-availability web app using CloudFormation

This folder provides the starter code for the "ND9991 - C2- Infrastructure as Code - Deploy a high-availability web app using CloudFormation" project. This folder contains the following files:

final-project-starter.yml Students have to write the CloudFormation code using this YAML template for building the cloud infrastructure, as required for the project.

server-parameters.json Students may use a JSON file for increasing the generic nature of the YAML code. For example, the JSON file contains a "ParameterKey" as "EnvironmentName" and "ParameterValue" as "UdacityProject".

In YAML code, the ${EnvironmentName} would be substituted with UdacityProject accordingly.

Diagram

architecture diagram

Usage

Make sure you have the following installed:

Set up your AWS credentials:

        aws configure

To create the infrastructure, run the following command:

        # Create the infrastructure
        # Clone the repo
        git clone https://github.com/mustafaDevop/high-availability-web-app

        # Change directory
        cd high-availability-web

        # Make the script executable
        sudo chmod +x create-servers.sh

        # Run the script, replace {stack-name} with your own stack name
        ./create-servers.sh {stack-name}

To update the infrastructure, run the following command:

        # Make the script executable
        sudo chmod +x update-servers.sh

        # Run the script, replace {stack-name} with your own stack name
        ./update.sh {stack-name}

To delete the infrastructure, run the following command:

              # Make the script executable
              sudo chmod +x delete-servers.sh

              # Run the script, replace {stack-name} with your own stack name
              ./delete.sh {stack-name}

Here is the link while it last

        http://udacity-loadbalancer-1215285312.us-west-2.elb.amazonaws.com/

loadbalancer screenshot

About

Deploy a high-availability web app using CloudFormation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages