Skip to content

zakarel/azure-terraform-small-medium-lz

Repository files navigation

Small/Medium Business landing zone projects

Introduction

This repository projects is to provide startups, small, medium businesses with a simple hub and spoke landing zone to get them quicky up and running on Azure. It is relevant where the enterprise landing zone feels too much. It built out of project, each with a specific purpose.

Projects

  • smb-landingzonev2 - Small/medium business terraform Azure simple landing zone. deployment of a main hub with 3 vnet spokes each represent an environment with corresponding network security groups.

  • smb-hub-secure - WIP

  • smb-ubuntu-vm-deployment - WIP

  • smb-aks-deployment - WIP

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See section "Plan" for notes on how to deploy the project on a live system.

Prerequisites

Installing

Cloning the project to you local workstation:

git clone [email protected]:zakarel/azure-terraform-bp-lz.git

Configuration

Initializing

cd <PROJECT>
terraform init

Log in to azure

az login
az account list -o table #Make sure your on the right sub
az account set -s '<SUB>' #Change to different sub

You can add a .tfsvars file with the predefined vars and place it in the current folder

echo "location = "westus" >> pre.tfsvars
# Make sure it's where the main.tf file is.

Validation

cd <PROJECT>
terraform fmt #Formatting the indentation/spaces/conf in the tf files
terraform validate #Validating there are no errors in the tf files

Plan

cd <PROJECT>
terraform plan -out=test1.tfplan

After the interactive var configuration a plan will be saved on the same folder which you can execute with

terraform apply test1.tfplan

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

  • Tzahi Ariel - Initial work - zakarel

License

This project is licensed under the MIT License - see the LICENSE file for details