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

How to create SRV record in Route53 with Terraform #6181

Closed
hh2001 opened this issue Oct 17, 2018 · 3 comments
Closed

How to create SRV record in Route53 with Terraform #6181

hh2001 opened this issue Oct 17, 2018 · 3 comments
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/route53 Issues and PRs that pertain to the route53 service.

Comments

@hh2001
Copy link

hh2001 commented Oct 17, 2018

Dear support,

I am trying to create SRV record in our AWS account with Terraform but I did not find any guide on it. I found in the DNS Provider branch and it is saying it is not available right now.

Can you let me know if we can do it or not?

Thank you very much.

Regards,

Harvey

@bflad bflad added question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/route53 Issues and PRs that pertain to the route53 service. labels Oct 17, 2018
@bflad
Copy link
Contributor

bflad commented Oct 17, 2018

Hi, @hh2001! 👋 I believe you are looking for the aws_route53_record resource:

resource "aws_route53_record" "example" {
  name    = "_example.${aws_route53_zone.example.name}"
  records = ["example"]
  ttl     = "300"
  type    = "SRV"
  zone_id = "${aws_route53_zone.example.zone_id}"
}

Hopefully this leads you on the right track. 😄

If you have any further questions, I would suggest reaching out on some of the other Terraform community forums where there are many more people watching and able to help. This GitHub issue tracker is only watched by Terraform code maintainers and generally for bug reports or feature requests with the Terraform AWS provider. 👍

@bflad bflad closed this as completed Oct 17, 2018
@mzhaase
Copy link

mzhaase commented Apr 17, 2019

The documentation is lacking here. SRV records have special fields that other records do not have. It is not clear at all how to set them.

Fields srv records use: priority, weight, port, target, service, proto, name.

Here is how the value needs to be set:

priority weight port target.

And name:
_service._proto.name.

Maybe this can be added as an example to the docs.

@ghost
Copy link

ghost commented Mar 30, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/route53 Issues and PRs that pertain to the route53 service.
Projects
None yet
Development

No branches or pull requests

3 participants