kennethcarnes / azure-vpn

This repository uses GitLab CI/CD and Terraform to deploy Azure resources for connecting an on-premises network through a VPN appliance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

  1. Create IAM Service Principle w/ necessary permissions and secret key https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret#creating-a-service-principal-using-the-azure-cli

  2. Create Azure Key Vault and Secrets. Give read permissions to the service principle created in above step. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret

    • vmadminpw = "Pa$$word!"
    • vpnsharedkey = "Pa$$word!"
    • gatewayaddress = "onpremgatewayaddress" ## ex) "93.2.43.42"
  3. Add environment variables to GitLab CI/CD https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret#configuring-the-service-principal-in-terraform

  4. Clone repository an edit subnets to fit your environment.

  5. Configure on-premise vpn device and verify connectivity.

About

This repository uses GitLab CI/CD and Terraform to deploy Azure resources for connecting an on-premises network through a VPN appliance.


Languages

Language:HCL 100.0%