/terraform-azure-vmss-packer

Azure virtual machine scale set from a Packer custom image

Primary LanguageHCLMIT LicenseMIT

Azure VM Scale Set and Redis cache deployment

This project provisions an application on Azure that interfaces with an Azure Redis Cache instance. It requires using Terraform Enterprise (TFE) as a terraform_remote_state Data Source is used.

Optionally, this deployment can be automated using Jenkins or another CI system using the TFE CLI to interact with a TFE. Steps for deploying using Jenkins are provided in the jenkins directory.

Time required: ~ 45 minutes

Architecture diagram VMSS

Deployment overview:

There are 3 main components to this deployment:

  • Packer: Builds a packer Azure managed Disk image that is used by the Application.
  • Core module: This module provisions an Azure VNET, Subnet and Bastion Host.
  • App module: This module deploys an Azure VM Scale Set, Load Balancer, Azure Redis Cache instance and the Python Redis Client application.

Build steps:

Please choose either one of the following build steps:

  1. Local builds using packer and TFE-CLI.

  2. Jenkins build