Network Next Terraform provider
November 30, 2023 ยท View on GitHub
Network Next Terraform provider
Network Next is configured via a Terraform provider. This provider talks with your REST API running in your environment to query and mutate the contents of the Postgres SQL database that configures Network Next.
You can see examples of the Network Next Terraform provider in action in the following files:
~/next/terraform/dev/relays/main.tf~/next/terraform/prod/relays/main.tf
And you can read the Network Next Terrafrom provider docs here: https://registry.terraform.io/providers/networknext/networknext/latest/docs
After you make changes with terraform, always remember to commit your changes to the backend runtime:
(terraform changes)
cd ~/next
next database
next commit
This extracts the configuration data defined in Postgres and commits it to the backend runtime. This way the essential runtime backend that plans and executes routing is able to operate independently from Postgres, and continues to function even if it is down.