terraform/namecheap.tf

25 lines
490 B
Terraform
Raw Normal View History

2022-08-18 18:16:44 +02:00
// https://registry.terraform.io/providers/namecheap/namecheap/latest/docs
variable "caladan-ip" {
type = string
default = "139.162.137.29"
}
provider "namecheap" {
user_name = "gthar"
api_user = "gthar"
client_ip = var.caladan-ip
use_sandbox = false
}
resource "namecheap_domain_records" "monotremata-xyz" {
domain = "monotremata.xyz"
mode = "MERGE" // maybe eventually move to OVERWRITE
record {
hostname = "@"
type = "A"
address = var.caladan-ip
}
}