Anurag e93659373d 🕸 Add server import by hostname & fix missing port_blocking (#12)
* Add server import by hostname

* Fix missing port blocking in server create

* hostname -> name
2024-08-31 15:27:03 +08:00
2024-08-31 11:48:43 +08:00
2024-08-31 11:48:43 +08:00
2024-08-12 18:07:23 +08:00

terraform-provider-binarylane

See the examples in the examples directory.

resource "binarylane_server" "example" {
  region = "per"
  image  = "ubuntu-24.04"
  size   = "std-min"
}

WIP

If somehow you use this in production I would be pretty impressed.

  • Create/delete a server when runing locally
  • Publish
  • Deploy the rest of the owl

Parameters

Images:

curl -X GET "https://api.binarylane.com.au/v2/images?type=distribution&&page=1&per_page=200" \
  -H "Authorization: Bearer **********" > tmp/images.json

jq '[ .images[] | .slug ] | sort' tmp/images.json
[
  "alma-8",
  "alma-9",
  "byo-os",
  "byo-os-virtio-disabled",
  "cpanel-plus-whm",
  "debian-11",
  "debian-12",
  "rocky-8",
  "rocky-9",
  "ubuntu-20.04-neon-desktop",
  "ubuntu-20.04.6",
  "ubuntu-22.04",
  "ubuntu-22.04-desktop",
  "ubuntu-24.04",
  "windows-2012-r2",
  "windows-2016",
  "windows-2016-sql-2016-web",
  "windows-2019",
  "windows-2019-sql-2017-std",
  "windows-2019-sql-2017-web",
  "windows-2022",
  "windows-2022-sql-2019-std",
  "windows-2022-sql-2019-web"
]

Regions:

curl -X GET "https://api.binarylane.com.au/v2/regions" \
  -H "Authorization: Bearer **********"" > tmp/regions.json

jq '[ .regions[] | .slug ] | sort' tmp/regions.json
[
  "bne",
  "mel",
  "per",
  "sin",
  "syd"
]

Sizes (not all sizes are available in all regions):

curl -X GET "https://api.binarylane.com.au/v2/sizes" \
  -H "Authorization: Bearer **********"" > tmp/sizes.json

jq '[ .sizes[] | .slug ] | sort' tmp/sizes.json
[
  "cpu-2thr",
  "cpu-4thr",
  "cpu-6thr",
  "cpu-8thr",
  "ded-3900x-1600gb",
  "ded-e2136-400gb",
  "ded-e2136-800gb",
  "ded-e2288g-400gb",
  "ded-e2288g-800gb",
  "hdd-1000gb",
  "hdd-2000gb",
  "hdd-500gb",
  "std-1vcpu",
  "std-2vcpu",
  "std-4vcpu",
  "std-6vcpu",
  "std-8vcpu",
  "std-min"
]
S
Description
Pull mirror of github.com/oscarhermoso/terraform-provider-binarylane, the Terraform provider for BinaryLane
Readme MIT 1.3 MiB
Languages
Go 92.1%
Shell 7.1%
Makefile 0.8%