digitalocean / terraform-provider-digitalocean

Terraform DigitalOcean provider
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs
Mozilla Public License 2.0
503 stars 270 forks source link

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

Open MatsKeWorks opened 10 months ago

MatsKeWorks commented 10 months ago

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

danaelhe commented 10 months ago

Hi! Thanks for the write up.

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

MatsKeWorks commented 10 months ago

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

MatsKeWorks commented 10 months ago

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

danaelhe commented 10 months ago

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.

zypA13510 commented 2 months ago

I think you can do this already with digitalocean_record.