-
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
add: new data source aws_lb_hosted_zone_id #24749
Conversation
Since network load balancer is supported on elbv2, I believe the right approach is to add new data source under elbv2: |
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.
Welcome @wellsiau-aws 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
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.
Really great first PR! Welcome to the community!
thanks for the feedback @GlennChia , see my response above |
We would appreciate one final run of the AccTests with the output pasted here now that you have made changes. Once you post that, I’ll mark this as ready for merge. nice job! |
to pass $ find ./internal/service/<service name> -type f -name '<your test file name>_test.go' \
| sort -u \
| xargs -I {} terrafmt fmt --fmtcompat {} fill in where i have |
Re-run textacc after the last commit
|
The available prefixes : What would the convention? should I add general prefix |
made minor fix for |
Test re-run
|
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.
LGTM 🎉
@wellsiau-aws Those prefixes are defined in |
@YakDriver , for now I added new prefix in |
@wellsiau-aws Could you please also add a line about this new DS to https://github.com/hashicorp/terraform-provider-aws/blob/main/docs/contributing/contribution-checklists.md#new-region? Thanks. |
I had some issue with my local machine running
However, I believe I have addressed the linting issue. I will run test on separate machine shortly. Here is the latest test:
|
% make providerlint
==> Checking source code with providerlint... |
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccLBHostedZoneIDDataSource_' PKG=elbv2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elbv2/... -v -count 1 -parallel 20 -run=TestAccLBHostedZoneIDDataSource_ -timeout 180m
=== RUN TestAccLBHostedZoneIDDataSource_basic
=== PAUSE TestAccLBHostedZoneIDDataSource_basic
=== CONT TestAccLBHostedZoneIDDataSource_basic
--- PASS: TestAccLBHostedZoneIDDataSource_basic (46.15s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/elbv2 53.995s
@wellsiau-aws Thanks for the contribution 🎉 👏. |
…s_availability_zones data sources instead'.
This functionality has been released in v4.15.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Closes #7988
Output from acceptance testing: