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

failure to create aws_lb network load balancer resource #1946

Closed
drnomolos42 opened this issue Oct 17, 2017 · 3 comments
Closed

failure to create aws_lb network load balancer resource #1946

drnomolos42 opened this issue Oct 17, 2017 · 3 comments
Labels
bug Addresses a defect in current functionality.

Comments

@drnomolos42
Copy link

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

esolomon@olmint ~/github/onelogin-terraform-general/prod/haproxy $ terraform -v
Terraform v0.10.7

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_lb

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "aws_lb" "primary-nlb-3-subnets" {
  name                  = "primary-nlb"
  count                 = "${length(data.terraform_remote_state.vpc.vpc_subnets_pub) == 3 ? 1: 0}"
  internal              = false
  load_balancer_type    = "network"
  subnet_mapping {
    subnet_id = "${data.terraform_remote_state.vpc.vpc_subnets_pub[0]}"
    allocation_id = "${var.allocation_ids[0]}"
  }
  subnet_mapping {
    subnet_id = "${data.terraform_remote_state.vpc.vpc_subnets_pub[1]}"
    allocation_id = "${var.allocation_ids[1]}"
  }
  subnet_mapping {
    subnet_id = "${data.terraform_remote_state.vpc.vpc_subnets_pub[2]}"
    allocation_id = "${var.allocation_ids[2]}"
  }
}

Debug Output

none

Panic Output

none

Expected Behavior

creating Network Load Balancer

Actual Behavior

Resource never gets created. I've waited up to 20 minutes to see if it completes.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply tf.plan

Important Factoids

I've tried this in several AWS regions with the same behavior. The count conditional is a little hacky but necessary since we have a region with only two subnets active.

References

@drnomolos42
Copy link
Author

likely it's same issue reported in a comment in #1912 - using a subnet_mapping causes creation to hang indefinitely.

@radeksimko radeksimko added the bug Addresses a defect in current functionality. label Oct 23, 2017
@radeksimko
Copy link
Member

This was addressed in #1956 which was merged and will be available in the next release.

@ghost
Copy link

ghost commented Apr 10, 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 Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality.
Projects
None yet
Development

No branches or pull requests

2 participants