24 linhas
567 B
HCL
24 linhas
567 B
HCL
# Buy a new VPS with credit (simulated with a sandbox_ key).
|
|
data "mozout_catalog_products" "vps" {
|
|
kind = "vps"
|
|
}
|
|
|
|
resource "mozout_vps" "web" {
|
|
product_id = data.mozout_catalog_products.vps.products[0].id
|
|
billing_cycle = "monthly"
|
|
power_state = "running"
|
|
timezone = "America/New_York"
|
|
}
|
|
|
|
# Manage a server you already have, without buying anything.
|
|
resource "mozout_vps" "existing" {
|
|
server_id = 12345
|
|
power_state = "running"
|
|
reverse_dns = {
|
|
"203.0.113.10" = "mail.example.com"
|
|
}
|
|
}
|
|
|
|
output "web_ip" {
|
|
value = mozout_vps.web.ip
|
|
}
|