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 register targets in NLB from vpc endpoint interface ids? #11676
Comments
You can retrieve it from data |
no, that doesn't work. |
resource "aws_lb_target_group_attachment" "sftp" { |
Try this: data "aws_network_interface" "endpoint_nic1" { resource "aws_lb_target_group_attachment" "nic0" { count = length(module.nlb.elb_target_group_arn) resource "aws_lb_target_group_attachment" "nic1" { count = length(module.nlb.elb_target_group_arn) |
You can do an indirect loop here using your var.public_subnet_ids from the aws_vpc_endpoint
|
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. |
I am trying to setup NLB for AWS Transfer Server, however I stuck on target register step as TF outputs IPs in eni-xyz format only. How can I get IPs from ENI ids to use them as a targets?
main.tf
NLB
vars.tf
The text was updated successfully, but these errors were encountered: