-
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
Route53 Resolver Endpoint failing when specifying more than two ip addresses #7942
Comments
Hi , I am going to update issue because I have same problem: I updated Terraform AWS provider version to 2.2 Latest:
Also upgrade Terraform version to 0.11.13 Latest. `Terraform will perform the following actions:
You guys got the same problem? |
|
Hi @dalvarezquiroga sorry you’re running into trouble here. Looking at the configuration and provided plan output I can see that the More specifically the If you update your configuration to reference the specific subnet id for the IP address be used things should work as expected. Note that subnet ids must be unique for each IP address block otherwise you will encounter the same error. resource "aws_route53_resolver_endpoint" "inbound_resolver" {
name = "Inbound Resolver"
direction = "INBOUND"
security_group_ids = [
"${aws_security_group.route53_resolver_dns.id}",
]
ip_address {
subnet_id = "${data.aws_subnet_ids.vpc-example-eu-central-1a.ids[0]}"
ip = "${var.IP_SUBNET_A}"
}
... |
You're right @nywilken It Worked like a charm. I change to return a list and put position [0]
Thanks you! |
@dalverezquiroga glad that’s all squared away. @ewbankkit thanks for the help on this one. |
Hi, this isn't working for me under different circumstances. I create the subnets within a particular module and output their IDs. I am then referencing these said IDs. When I perform a plan, only 2 ids/IPs are returned to be configured. resource "aws_route53_resolver_endpoint" "r53_resolver_outbound" { security_group_ids = [ ip_address { ip_address { ip_address { } |
@GeorgeShort Can you add the |
Is there any reason why this resource requires one ip per subnet? Creating the resolver via the console does not restrict you from creating a resolver with multiple ip addresses in the same subnet. I am replacing existing resolvers and so the downstream systems do not have to make any changes, I am keeping the IPs the same. Some of them have multiple in the same subnet. When I run a plan it only shows the last ip_address. I can import a precreated resolver with the three ips without issue. |
@ramarnat The technical reason is that the |
Thank you for explaining. |
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! |
Community Note
Issue created for #6525 (comment)
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Successful creation of a Route53 resolver endpoint with three IP addresses.
Actual Behavior
With provider.aws: version = "~> 2.1" is failed with message:
Resolver endpoint need to have at least 2 IP addresses.
But I have 3 Subnets and I want to put 3 IPs.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: