Package com.eqixiac.equinix.design.export


package com.eqixiac.equinix.design.export
Exporters that render design-engine output into portable, version-controllable text formats. Both exporters are stateless, thread-safe, and side-effect free - they read a plan or result and return a string, provisioning nothing.

TerraformExporter renders a DeploymentPlan as HCL for the Equinix Terraform provider: equinix_fabric_cloud_router, equinix_fabric_connection (provider connections and backbone links, with the mandated notifications on every resource and redundancy blocks where planned), and equinix_fabric_routing_protocol (BGP emitted with depends_on its DIRECT sibling), plus sensitive input variables for the customer-supplied cloud authorization keys and VLAN tags. Its honest limits: the caller still supplies provider credentials and the variable values before terraform apply, and physical colocation (cabinets, cross-connects) cannot be expressed at all - the Equinix Terraform provider has no resources for it.

TopologyDiagram renders a DeploymentPlan (metro subgraphs, provider edges, backbone edges; graph LR) or an OptimizationResult (ranked metros and workload placements; graph TD) as Mermaid graph text, which GitHub, GitLab and most docs platforms render natively. Labels are HTML-escaped so real-world names cannot break the diagram.

Beta. Native multicloud links (DeploymentPlan.multicloudLinksOrEmpty()) are direct links between two cloud providers that use no Equinix resource. Neither exporter turns one into a provisionable artifact:

Rendering of a native multicloud link
ExporterOutputNot produced
TerraformExportera delimited # comment block (providers, regions, bandwidth in Mbps, environment status, role, the create-then-accept procedure with source URLs) and one variable "<name>_destination_account_id" of type string; a header line per REPLACEMENT link naming the omitted Equinix connectionsany resource or provider block for the link; any aws_*, google_*, oci_* or azurerm_* resource; a variable for the activation key
TopologyDiagrama dashed <-.-> edge between the two cloud nodes labeled native multicloud (outside Fabric)an edge for an UNAVAILABLE entry; any edge through a Cloud Router
See Also: