willCode2Surf / acre-terraform-geo-replication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

acre-terraform-geo-replication

Use the latest "azurerm" Terraform provider, combined with the latest ARM templates, to deploy Azure Cache for Redis Enterprise (ACRE) in two separate regions with active geo-replication

  • Tenant
    • Subscription
      • Service Principal
      • Resource Group
        • Storage Account
          • Storage Container
        • Redis Enterprise Cluster in Region 1
        • Redis Enterprise Cluster in Region 2

Prerequisites

Secrets

  1. Tenant ID
  2. Subscription ID
  3. Service Principal
    1. Client ID
    2. Client Secret

Tools

  1. Terraform CLI 0.14.7

Getting started

  git clone https://github.com/redisgeek/acre-terraform-geo-replication
  cd acre-terraform-geo-replication
  terraform init

The output should include:

  Terraform has been successfully initialized!

Copy the variables template.

cp terraform.tfvars.example terraform.tfvars

Update terraform.tfvars with your secrets and set the regions you want to deploy to.

vi terraform.tfvars
terraform plan
terraform apply

Have fun!

Regions

There are default regions configured in the variables.tf file. The ARM templates are expecting 3 AZs in each region. If every region-cluster is deployed with 3 AZs, then the SLA is 99.999. You can update your terraform.tfvars to use another region with 3 AZs. Or you can use another region and also update the ARM template for that cluster.

Cleanup

Remove the resources that were created.

terraform destroy

About


Languages

Language:HCL 100.0%