forked from mirrors/terraform-provider-binarylane
5978c20f99eb3b07957eeced4b125e839b6c3b96
Terraform Provider for BinaryLane
A Terraform provider for managing BinaryLane cloud resources: servers, firewall rules, reverse DNS, SSH keys, VPCs and load balancers.
This is a fork of oscarhermoso/terraform-provider-binarylane. It tracks upstream and adds:
binarylane_server_reverse_nameresource for managing IPv4 PTR recordsdestination_portsis optional onbinarylane_server_firewall_rules, allowing rules for protocols such as ICMP- server action waits are bounded by a timeout instead of polling forever
Quick start
terraform {
required_providers {
binarylane = {
source = "IUCLabs/binarylane"
}
}
}
provider "binarylane" {
# Or set BINARYLANE_API_TOKEN
api_token = var.binarylane_api_token
}
resource "binarylane_server" "example" {
region = "per"
image = "ubuntu-24.04"
size = "std-min"
public_ipv4_count = 1
}
More complete configurations live in examples/.
Requirements
Documentation
Provider and resource documentation is in docs/, in the Terraform Registry layout. Regenerate it with make docs after changing a schema.
Developing
make build # build the provider binary
make test # unit tests
make docs # regenerate docs/
Acceptance tests run against the live BinaryLane API and need TF_ACC=1 and BINARYLANE_API_TOKEN. See CONTRIBUTING.md for local development overrides.
License
MIT, as inherited from upstream.
Languages
Go
92.1%
Shell
7.1%
Makefile
0.8%