mirror of
https://github.com/oscarhermoso/terraform-provider-binarylane
synced 2026-10-20 21:59:17 +11:00
f73528497f
* Wait for cloud-init to complete * Define `wait_for_create` attribute to make waiting for server opt-in
22 lines
541 B
Terraform
22 lines
541 B
Terraform
terraform {
|
|
required_providers {
|
|
binarylane = {
|
|
source = "oscarhermoso/binarylane"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "binarylane" {
|
|
# api_url = "" # Defaults to "https://api.binarylane.com"
|
|
# api_token = "" # Recommend setting with environment variable BINARYLANE_API_TOKEN
|
|
}
|
|
|
|
resource "binarylane_server" "example" {
|
|
name = "tf-cloud-init-example"
|
|
region = "per"
|
|
image = "ubuntu-24.04"
|
|
size = "std-min"
|
|
user_data = file("./cloud-config.yml")
|
|
wait_for_create = 300 # 5 mins
|
|
}
|