-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Feature request: Route 53 Resolver endpoint resource #6563
Comments
Suggested syntax: resource "aws_route53_resolver_endpoint" "foo" {
direction = "INBOUND"
name = "terraform-testacc-r53-resolver-foofoo"
security_group_ids = [
"${aws_security_group.sg1.id}",
"${aws_security_group.sg2.id}",
]
ip_address {
subnet_id = "${aws_subnet.sn1.id}"
}
ip_address {
subnet_id = "${aws_subnet.sn3.id}"
ip = "10.0.64.4"
}
tags {
Env = "Prod"
}
} |
+1 I would also like to see the resources related to other pieces of the R53 Resolver functionality added, such as rule creation and VPC assignment to said rules for outgoing forwarders. |
I agree, the way I've worked around this was adding local exec that invoked the aws cli commands for the resolver endpoints and rules. |
+1 |
@jankarltommy would you please share more information about how you run aws-cli in local exec? |
EDIT: Added output logic for ID Here is what I cooked up to create the resolver endpoint through Terraform:
This will allow you create the endpoints, I did something very similar for the other cli commands. The catch here is that you need to make sure your aws access & secret keys are set along with a
The other catch is that the endpoint id is not something that is available after executing the command, rather the entire output as a whole is stored. I suppose the resolverId could be grepped through another local exec that reads the local_file and stores it into another file, which we then output again. I'm not a big fan of this solution but it's a temporary solution until we have a route53resolver. Hope this helps! |
Any update of this? We need this too. :) |
Any updates? getting off BIND/DNS servers and looking to implement this across 200+ aws accounts. |
So very interested in this |
Really looking forward to this (+ all R53 Resolver related resources) |
+1 |
This resource has been merged and will release with version 2.1.0 of the Terraform AWS Provider. |
This has been released in version 2.1.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Hi @ewbankkit , Thank you so much for adding the aws_route53_resolver_endpoint in v2.1.0.
ERROR: |
@pjain17 can you try two unique subnet_ids? I have a question though. Why is there a mandate to use 2 IP addresses/subnets? Why can't we just select one and create a resolver? By using AWS UI console, it allows to create resolver with one subnet/ip |
@pjain17 See #7950 (comment) as to why we are currently using just |
@an-sush There was a discussion around this during the review of the PR, see #6574 (review). Even though the API says that the minimum number of IPs is 1 we found that an error returned with less than 2. |
@pjain17 thanks for reporting the issue, and @an-sush @ewbankkit thanks for helping out. Commenting on closed issues makes it difficult to track the thread. Would you mind opening a new issue or adding your comments to the already open issue #7950, as they are all related. |
@an-sush In the us-west-2 Console I see the text
|
I know this issue is closed, but we just ran into the same issue as @pjain17 with Here's the TF debug output that was indicating the problem:
Unfortunately, this is fairly cryptic and generally unhelpful in locating the problem. We had the permissions for our Terraform role locked down to only what we needed, adding each permission as Terraform indicated through errors. We couldn't figure this problem out however, until we found this doc: |
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! |
Add a Route 53 Resolver endpoint resource.
Related:
The text was updated successfully, but these errors were encountered: