action.skip

Megaport Terraform Provider Overview

This topic provides introductory information about Megaport services, Terraform, and the Megaport Terraform Provider, aimed at new users seeking to get started using the Megaport Terraform Provider.

What is Megaport?

Megaport is a global Network as a Service (NaaS) provider that makes it easy to connect your network to cloud services such as AWS, Microsoft Azure, and Google Cloud without needing complex physical infrastructure.

It uses a software-defined network (SDN) to let you create scalable, secure, and on-demand virtual connections called Virtual Cross Connects (VXCs), between data centers, cloud providers, and enterprise networks. If you are new to Megaport, see Introducing Megaport.

For users who want to work with Infrastructure as Code (IaC)Infrastructure as Code (IaC) tools let you manage infrastructure using configuration files instead of a graphical user interface like websites or web portals. IaC allows you to build, modify, and manage resources such as networks, servers, virtual machines, and storage in a safe, consistent, and repeatable way by defining resource configurations that can be versioned, reused, and shared.
, Megaport offers Terraform support so you can automate the setup and management of your network connections, just like you do with your cloud resources. This helps you build flexible, agile, and multicloud-ready networks with ease.

What is Terraform?

Terraform is an Infrastructure as Code (IaC) tool developed by HashiCorp. It allows you to define infrastructure such as servers, networks, and databases in code, rather than configuring it manually through web interfaces.

With Terraform, you write simple, human-readable configuration files that can be version-controlled, shared, and reused. This approach makes infrastructure management more consistent, scalable, and efficient.

Terraform automates the creation, update, and removal of infrastructure resources, helping DevOps teams streamline and standardize their workflows.

Key features of Terraform

  • Declarative – You describe the final configuration of your infrastructure, and Terraform figures out how to achieve it, instead of providing step-by-step instructions to provision it manually.

  • Cloud-agnostic – Terraform works with various cloud providers such as AWS, Azure, Google Cloud, and on-premises infrastructure. This allows for multicloud deployments.

  • Automation – Terraform automates the provisioning and management of infrastructure, reducing manual errors and saving time.

  • State management – Terraform keeps track of your infrastructure’s state, enabling it to understand and manage changes effectively.

  • Modules – Terraform provides reusable configurations that simplify the creation of complex infrastructure setups.

What is the Megaport Terraform Provider?

The Megaport Terraform Provider lets you create, manage, and update Megaport services through the Megaport API using Terraform tools.

The Megaport Terraform Provider allows you to create and manage Megaport services, including Ports, Virtual Cross Connect (VXCs), Megaport Cloud Router (MCR), Megaport Virtual Edge (MVE), and partner VXCs. It makes it easy to create multicloud and hybrid environments on the Megaport software-defined network (SDN).

The benefits of using the Megaport Terraform Provider include:

  • You can manage Megaport’s network resources in a consistent, repeatable, and automated manner.

  • Creation of multicloud hybrid environments in an automated manner.

  • Version-controlled, shared, and reused infrastructure management, making deployment more consistent and efficient.

  • Reduced manual configuration and potential manual errors.

Note

The Megaport Terraform Provider is intended to be used with the Megaport API. It constitutes part of the official paid product and is eligible for support through customer channels. For more information, see Contacting Support.

Important

Usage of the Megaport Terraform Provider constitutes your acceptance of the terms in the Megaport Acceptable Use Policy and Global Services Agreement.

Helpful references