Terraform/OpenTofu provider for the Inter.link Portal API.
- Terraform >= 1.11 (OpenTofu >= 1.9): the
interlink_ip_transitresource uses write-only arguments.
terraform {
required_providers {
interlink = {
source = "interdotlink/interlink"
}
}
}
provider "interlink" {
api_key = var.interlink_api_key
}- Resource
interlink_ip_transit: manages an IP Transit service.terraform applysubmits the order and returns immediately with the service at statusDraftQuote; the service is not provisioned yet, and advances asynchronously asstatuscatches up on later refreshes. Supports create, read, and import; attributes are immutable after creation, andterraform destroyis refused by design (cancellation is a contractual action, never automatic). Import by numeric service ID (terraform import interlink_ip_transit.example 11). On import the port is always reconstructed as anexisting_portblock, so configure the imported service accordingly. - Data sources:
interlink_status,interlink_products,interlink_locations,interlink_projects,interlink_services, and the per-familyinterlink_ip_services,interlink_ddos_services,interlink_port_services,interlink_elan_services,interlink_flexpeer_services.
See the registry documentation for full schemas and examples.
go build ./...The client in internal/portal/ is generated from the Portal OpenAPI spec with
oapi-codegen:
cd internal/portal && oapi-codegen -config config.yaml openapi.json