Skip to content

fett0/azure-accelerated-networking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Accelerated Networking automation with Terraform

Terraform Module to create a Resource Group with Azure Virtual Network (VNet), subnets accross one public and interfaces with Azure Accelareted networkting activated.

To connect our VyOS router, we need to create the proper SSH public/private key, and the public key should be stored in files/key.pub.

Access to VyOS VM instance from the internet is available using ssh (port 22) and the user is vyos by default.

This module allows you to generate a public IP address and associate it with our VyOS instance.

High level diagram on Azure

Diagram

Current state

Modules:

  • main: Sets up a Vnet with Subnets, 1 public subnet, Network security groups, and interfaces with acceleration network, public IP address.
  • VMs: Currently creates a VM with vyos(vyos-1.4.0, where the version can be defined by variable) public/private subnet.
  • rsa key pub key must be used to connect our vm, user is: vyos

Requirements

Name Version
terraform >= 1.2.5
hashicorp/azurerm >= 3.93.0

Providers

Name Version
hashicorp/azurerm >= 3.93.0

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Outputs

$ VyOS_Public_IP_Address = "x.x.x.x"

Inputs

Name Description Type Default Required
namespace The project namespace to use for unique resource naming string "automation-vyos" no
location location form azure zone string "West Europe" yes
resource_group The name of your RG string "vyos_resource_group" yes
cidr cidr is used for virtual-network string "10.0.0.0/22" yes
pub_subnet network public that it is used for virtual-network string "10.0.2.0/24" yes
hostname The name of your VM string "vyosaz01new" yes
vyos_image_id vyos version used for our VM string "1.4.0" yes
image_publisher_id Name of the publisher of the image string "sentriumsl" yes
image_offer_id Name of the offer string "vyos-1-2-lts-on-azure" yes
image_sku Image SKU to apply string "vyos-1-3" yes

About

vyos image to deploy azure accelerate networking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages