Giter VIP home page Giter VIP logo

azure-3-tier-webapp's Introduction

Three Tier Webapp

Lint Code Base tfsec-pr-commenter


Infrastructure

Architecture Overview

Documentation

Goal

Provision a 3-tier-application with terraform, consisting of a PostGreSQL Database, two nginx webservers and a load balancer. Also provide additional infrastructure, including a keyvault, and Ansible Host and a Bastion Host. Then configure the Webservers using Ansible. This includes OS updates, OS hardening, creating a user and adding a Telegraf agent to collect nginx metrics.

Manual usage:

  • go the dev or prod environment
  • configure the main to your preference or use the standard config matching the above displayed use case
  • run terraform commands:
    • terraform init
    • terraform plan
    • terraform apply
  • run ansible playbook: (pass the stage variable matching the stage you chose for step 1)
    • ansible-playbook playbook.yaml -i inventory_azure_rm.yaml

Automation

  • when running the project with remote state file, configure via azure.conf and provider.tf
  • pipeline can be imported and started directly via Azure Devops
  • Run inital_setup.yml first to setup TF state file and a keyvault. Add the Service Principal credentials to the keyvault (required for Ansible). Change the keyvault name as it needs to be unique over all azure accounts.
  • Next run build-pipeline.yml for the Terraform infrastructure and finally ansible-setup.yml for the Nginx Setup via Ansible.
  • Destroy all with the destory-pipeline.yml

For complete Documentation also see the Documentation Folder. Also each module has its own markdown file, containing basic information.

azure-3-tier-webapp's People

Contributors

pkehnel avatar tpetzke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.