Skip to content

aberner/iac-azure-terraform-example

Repository files navigation

Infrastructure as Code example with Terraform setting up Azure resources

Simple azure terraform example

Step-by-step introduction here

Quick guide:

prerequisite

Nice to have

USAGE

  1. Fork and download
  2. Create the file terraform.tfvars
    • set the variable app_name
    • app_name = "<INSERT_HERE>"
  3. Initialize Terraform
    • terraform init
  4. Terraform plan
    • terraform plan

If everything now works, it's time to create your resources in Azure.

  1. Authenticate towards Azure (if you haven't already done this)
    • az login
  2. Create all the resources
    • terraform apply

Clean up

Remember to clean up and delete all the resources when the testing is done.

  • terraform destroy