Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FQDN output to digitalocean_record resource types #5064

Closed
kyl191 opened this issue Feb 9, 2016 · 6 comments · Fixed by #5071
Closed

Add FQDN output to digitalocean_record resource types #5064

kyl191 opened this issue Feb 9, 2016 · 6 comments · Fixed by #5071

Comments

@kyl191
Copy link

kyl191 commented Feb 9, 2016

Hi,
I'm creating a DNS record with digitalocean_record, and want to be able to use the resulting FQDN.

Cloudflare_record exports the hostname attribute, which is the FQDN, could a similar thing be added for digitalocean_record?

@stack72
Copy link
Contributor

stack72 commented Feb 9, 2016

Hi @kyl191,

this isn't available as part of the SDK - the SDK has the following fields in the struct:

type DomainRecord struct {
    ID       int    `json:"id,float64,omitempty"`
    Type     string `json:"type,omitempty"`
    Name     string `json:"name,omitempty"`
    Data     string `json:"data,omitempty"`
    Priority int    `json:"priority,omitempty"`
    Port     int    `json:"port,omitempty"`
    Weight   int    `json:"weight,omitempty"`
}

I think we would have to ask for a change to be made to their API as it doesn't expose it either AFAICT

https://developers.digitalocean.com/documentation/v2/#domain-records

Paul

@stack72 stack72 added enhancement waiting-response An issue/pull request is waiting for a response from the community provider/digitalocean labels Feb 9, 2016
@kyl191
Copy link
Author

kyl191 commented Feb 9, 2016

Hi Paul,
DIgital Ocean might not expose it, but I think it would be possible to do it in terraform itself - we know both parts of the FQDN.

I've created a workaround for my usecase with a module (https://github.com/kyl191/terraform-cloudflare-modules/blob/master/create-fqdn/main.tf) - essentially pass the domain + subdomain, and get an output of the two combined.

Thanks,
Kyle

@radeksimko
Copy link
Member

@radeksimko radeksimko removed the waiting-response An issue/pull request is waiting for a response from the community label Feb 9, 2016
@stack72
Copy link
Contributor

stack72 commented Feb 9, 2016

thanks @radeksimko - will add it
@kyl191 I will open a PR for this shortly

@stack72
Copy link
Contributor

stack72 commented Feb 22, 2016

Hi @kyl191 - this has been merged and will appear in 0.6.12 :)

@ghost
Copy link

ghost commented Apr 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants