Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello! I am trying to create a CAA record in DNS using digitalocean_record, digitalocean provider in Terraform. I am confused on what fields it wants.
I created a record manually and pulled it with API
{
"id": 159194908,
"type": "CAA",
"name": "@",
"data": "letsencrypt.org",
"priority": null,
"port": null,
"ttl": 3600,
"weight": null,
"flags": 0,
"tag": "issue"
}
When I create a block in Terraform with the same information I get an error.
resource "digitalocean_record" "web-caa-dns" {
value = "letsencrypt.org"
domain = "letsencrypt.org"
type = "CAA"
name = "@"
ttl = 3600
flags = 0
tag = "issue"
}
Error Message:
Error: Failed to create record: POST https://api.digitalocean.com/v2/domains/letsencrypt.org/records: 422 (request "522...") Data needs to be a FQDN with issue or issuewild
with digitalocean_record.web-caa-dns
on dnsrecords.tf line 153, in resource "digitalocean_record" "web-caa-dns":
resource "digitalocean_record" "web-caa-dns" {
It says data needs to be fqdn but if I add
data = "domainname.com"
to Terraform it tells me that field isn’t expected.
72e571841e7f4a6881090a2f3e93c0
dom77a6e2e9d3a2
Christoffer Braathen
Jaimin Joshi
099d155dd62c45078c85bd5b98d003
82488cefb7d74db1ad87250ea4f452
Mrugesh Mohapatra
828c1c19bec3419eb032d05c128960
Rumyana Rumenova
Ben Roberts
garry55441234