Skip to content

Latest commit

 

History

History
 
 

examples

Examples

This folder contains examples that demonstrate the functionality of the Megaport Terraform Provider. To use each of these examples, you need to complete all the Getting Started Requirements.

Update the credentials in the provider block, which can be moved to its own file.

All examples assume you have prior knowledge and understanding of how to use Terraform.

All Megaport resources built by Terraform will be visible in the Megaport Portal associated with the environment used.

Here's a description of each example:

  1. single_port: Create a Single Megaport.
  2. two_ports_and_vxc: Provision two Megaports in different locations linked by a VXC (Virtual Cross Connect)
  3. lag_port: Create a LAG Port.
  4. cloud_to_cloud_aws_azure: Create a fully functional example network linking AWS & Azure Cloud Service Providers via a MCR (Megaport Cloud Router). This will only work when executed in Production.
  5. cloud_to_cloud_aws_google: Create a fully functional example network linking AWS & Google Cloud Service Providers via a MCR (Megaport Cloud Router). This will only work when executed in Production.
  6. mcr_and_csp_vxcs: Create the Megaport portion of a Mult-Cloud, AWS, Azure, and GCP network.
  7. full_ecosystem: Generate all the resources exposed by the Terraform provider.