-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
d/lb_listener: get listener from load balancer and listener port #2886
Conversation
@loivis looks like a dependency issue on the listener, if you modify the port value to references rather than explicit values, that should fix your dependency issue. I've attached the patch
|
thanks, @kl4w |
I almost forgot this myself. Anyone could review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay in reviewing this and thanks for the contribution! LGTM
make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAWSLBListener'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccDataSourceAWSLBListener -timeout 120m
=== RUN TestAccDataSourceAWSLBListener_basic
--- PASS: TestAccDataSourceAWSLBListener_basic (213.33s)
=== RUN TestAccDataSourceAWSLBListenerBackwardsCompatibility
--- PASS: TestAccDataSourceAWSLBListenerBackwardsCompatibility (211.89s)
=== RUN TestAccDataSourceAWSLBListener_https
--- PASS: TestAccDataSourceAWSLBListener_https (224.47s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 649.738s
This has been released in terraform-provider-aws version 1.9.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
Attempt to fix #2885
The code itself works as I wanted but help is needed with acceptance test.
I added a few tests and data sources with arguments of
load_balancer_arn
andport
but got complains. It seems like the new data source was not created. I'm not sure if I missed anything.