Archived
Implement read-only Dynu Terraform provider skeleton
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
data "dynu_dns_records" "records" {
|
||||
hostname = "www.example.com"
|
||||
}
|
||||
|
||||
output "records" {
|
||||
value = data.dynu_dns_records.records.records
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
data "dynu_domain" "selected" {
|
||||
hostname = "www.example.com"
|
||||
}
|
||||
|
||||
output "domain" {
|
||||
value = data.dynu_domain.selected.domain
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
data "dynu_domains" "all" {}
|
||||
|
||||
output "domains" {
|
||||
value = data.dynu_domains.all.domains
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
provider "dynu" {
|
||||
# api_key can be omitted when DYNU_API_KEY is set
|
||||
api_key = var.dynu_api_key
|
||||
}
|
||||
|
||||
variable "dynu_api_key" {
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
Reference in New Issue
Block a user