terraform-provider-digitalocean icon indicating copy to clipboard operation
terraform-provider-digitalocean copied to clipboard

Add possibility to add CNAME or multiple entries to domain so that we can instantly reference a Space Bucket

Open MatsKeWorks opened this issue 1 year ago • 5 comments

After terraforming my cluster, i still have to manually point my domain to the S3 spaces.

I would like to automate this bij setting a CNAME (bucket endpoint) instead of ip address in my domain block.

Is it possible to add this?

Would even be better if you were able to add a list of entries

type (A/CNAME/etc) hostname (prefix) value ttl

Describe alternatives you've considered

Doing it manually after terraforming

MatsKeWorks avatar Nov 16 '23 15:11 MatsKeWorks

Hi! Thanks for the write up.

Would it be possible to share the terraform config you're working from?

danaelhe avatar Nov 16 '23 15:11 danaelhe

https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/domain

MatsKeWorks avatar Nov 20 '23 18:11 MatsKeWorks

resource "digitalocean_domain" "example" { name = "github.com" }

MatsKeWorks avatar Nov 20 '23 18:11 MatsKeWorks

Thank you, the API currently doesn't support this but I've relayed your request to the internal engineers and will check back here if they have any insight/updates on this feature request.

danaelhe avatar Nov 21 '23 14:11 danaelhe

I think you can do this already with digitalocean_record.

zypA13510 avatar Jul 11 '24 10:07 zypA13510