Giter Club home page Giter Club logo

taofeekaoyusuf / azurewebserver-deploymenr-with-terraform-and-packer-in-azurecloud Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 707 KB

This project entails a webserver deployment using Terraform for Infrastructure as Code and Packer for VM image generation.

Shell 23.42% HCL 76.58%
packer terraform azure-policy-service cloud infrastructure-as-code microsoft-azure network-security-groups virtual-network vm-image-builder vm-image-generation

azurewebserver-deploymenr-with-terraform-and-packer-in-azurecloud's Introduction

Azure Infrastructure Operations Project: Deploying a scalable IaaS web server in Azure.

alt text

Introduction

In this project, a Packer and a Terraform templates were create to deploy a customizable, and scalable Web Server on Microsoft Azure Cloud Platform.

Dependencies

  1. Create an Azure Account
  2. Install the Azure command line interface
  3. Install Packer
  4. Install Terraform

Instructions for running the Packer and Terraform templates

In order to initialize the infrastructure, there are two scenarios:

  • You can start the building of the Infrastructure by either running the Policy, Packer, and Terraform codes on Azure Cloud CLI, or
  • Off the Azure Cloud CLI.
  • Whichever the case maybe, ensure to select the number of Virtual Machines (VM) you intend creating by modifying the count_on variable in the variables.tf file.
  • NOTE: The highest number of Virtual Machines that can be specified is 3, in this scenario as we are limited by the resources provided to us by Udacity.
  • If you intend to run this code on your own Microsoft Azure's account, then you can feel free to experiment with more than 3 VMs.

For Scenario one

  • Initiate the Infrastructural build with this comman: sh azure_starter_and_policy.sh and press Enter key.

For Scenario two

  • Open the azure_starter_and_policy.sh bash script file and uncomment the Login Section of the file and specify the parameters as requested by the code before running the command, and once that is accomplished, you can then initiate the infrastructure building like specified in Scenario one.

To have further insight on how the Packer and Terraform commands were initiated, kindly checkout the azure_starter_and_policy.sh bash script file for details, please. And in order to clean-up after building the infrastructures and creating different resources, kindly refer to the Clean-up and Maintenance section of this README file.

Clean-up and Maintenance

  • When all is done and set, the resources created can be deleted and destroyed by running the bash script file named cleanUp_and_maintenance.sh thus: sh cleanUp_and_maintenance.sh.
  • This operation will delete and destroy all the created resources after we are done with it.

That's all in a nutshell, Enjoy!!!

Outputs:

  • main.tf
  • variables.tf
  • server.json
  • requested snapshots
  • solution.plan
  • Other useful files

azurewebserver-deploymenr-with-terraform-and-packer-in-azurecloud's People

Contributors

lifiuni avatar taofeekaoyusuf 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.