Skip to content
End-to-end provisioning of Packet Connect using Terraform
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md Update README.md Apr 26, 2019
find_second_iface.sh
main.tf
tf-packet-connect.gif

README.md

Packet Connect Terraform

This repository demonstrates setting up end-to-end connectivity between Packet and Azure using Terraform and Packet Connect.

demo

This script will create a project, a Packet Connect object, a single VLAN, and a single bare metal instance in mixed/hybrid networking mode with the first NIC in bonded Layer 3 and the second NIC unbonded in a single VLAN attached to the Packet Connect object.

Setup

In Azure:

  • A virtual machine, virtual network, and virtual network gateway that are all associated to each other
  • An ExpressRoute Circuit (provider = Packet)
    • Connectivity between ExpressRoute and your Virtual Network Gateway (Connectivity tab)
    • ExpressRoute configured with Private Peering (primary and secondary /30s can be any RFC 1918 IP space)

In Packet:

  • A valid API key, exported as the environment variable PACKET_AUTH_TOKEN

Usage

Clone this repository locally, edit main.tf and substitute the locals section to the appropriate variables, then:

terraform plan

Assuming no errors, create the necessary resources with:

terraform apply

License

This is provided under the BSD 3-Clause software license.

You can’t perform that action at this time.