-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Cloudflare - SRV DNS records #5732
Comments
I tried using 5 instead of 0 but effect is still the same.
I have just one record to add with SRV so it's not a big problem for me right now :) Just did it manually but maybe in future someone will need some serious number of this to configure. |
i have the same issue, i cannot insert record via API (version 4) |
It is possible to create a SRV record via API v4 (see the documentation, section describing a record creation, and click Defenition button) |
I have also an issue to create SRV records via cloudflare provider with Terraform 0.8.2. The resource is similar to the one above, but my respponse is another:
Code 1004 means "Cannot find a valid zone", but I can't find code 9036 in the Cloudflare docu. |
I tried to use the CloudFlare API directly as described in their docu with required parameters, but I get the same error code 1004 (https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record). See below my CURL Script which works for me now:
|
@eatsleepandcode so you solved your problem? |
@arthur-s No. I'm still not able to use the Cloudflare provider to create a Cloudflare_record of type "SRV". I perform now a local-exec with a shellscript (the CURL above) to create the SRV records. What I meant is, that using the Cloudflare API with curl for SRV record as described in Cloudflare docu throws the same error code as using Terraform. So I fetched the correct working curl with firebug from firefox. I think there are some missing attributes for the Terraform implementation. |
This is still the case with Terraform v0.8.6.
I've added a SRV record by Cloudflares webinterface and checked for the JSON structure:
Where you can add a new record successfully like this:
|
Anyway a fix would be great because upon deletion of resources (by reducing for example count) Terraform leaves these SRV-records (created by curl):
|
@bkleef You did the same like me with inspecting the JSON and creating CURL script :-) |
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. |
I'm trying to add SRV record but there is an error with cloudflare API
Version
Configuration for this SRV
The text was updated successfully, but these errors were encountered: