Giter Club home page Giter Club logo

3-tier-cicd's Introduction

hypha-3-tier

  1. Clone the Repository: Open your terminal and clone the repository to your local machine using the following command:

    git clone https://github.com/fredritchie/hypha-3-tier.git
  2. Open the Folder in VS Code: Navigate to the cloned folder (hypha-3-tier) using the terminal and open it in Visual Studio Code:

    cd hypha-3-tier
    code .
  3. Modify Variables: Inside the folder, locate the variables.tf and backend.tf files. These files contain the Terraform variables and backend configuration. Modify the variables in variables.tf as per your requirements. The backend.tf file specifies the backend configuration, such as the S3 bucket to store Terraform state. Adjust it if needed.

  4. Initialize Terraform: Move to the terraform folder within the repository using the terminal:

    cd Terraform

    Then, initialize Terraform to download the necessary providers and modules:

    terraform init
  5. Plan Terraform Deployment: Run Terraform plan to preview the changes that will be applied:

    terraform plan
  6. Apply Terraform Configuration: If the plan looks good, apply the Terraform configuration to create the infrastructure:

    terraform apply -auto-approve
  7. Update Static Content: Change your current directory to the static content folder containing your HTML files and images.

  8. Update HTML File with ALB DNS: Open the index.html file in Visual Studio Code and replace the placeholder with the DNS name of the Application Load Balancer (ALB) obtained from the Terraform output.

  9. Upload Files to S3 Bucket: Using the AWS CLI, upload the index.html, background.jpeg, and logo.jpeg files to the S3 bucket created by Terraform:

    aws s3 cp . s3://bucket-name/ --recursive

    Replace bucket-name with the name of your S3 bucket.

  10. Access the Static Website: Once the files are uploaded, you can access the static website by visiting the S3 bucket URL in a web browser. Clicking on the hyperlink in the index.html file should redirect you to the web application running on the EC2 instance behind the ALB.

3-tier-cicd's People

Contributors

fredritchie avatar lionhuntdig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.