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

feat: increase max values for lf tags #26546

Conversation

frco9
Copy link
Contributor

@frco9 frco9 commented Aug 30, 2022

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Feature details

When using the AWS console to create a LF Tag and its values, we can only define 15 values. However when using the aws cli and the API, the maximum values allowed per call is 50. Furthermore, it's indicated in this documentation that the soft-limit for values per tag is 1000.

This PR allows user to create tag values up to this limit.

Output from acceptance testing:

$ make testacc TESTS=TestAccLakeFormation_serial/LFTags PKG=lakeformation
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lakeformation/... -v -count 1 -parallel 20 -run='TestAccLakeFormation_serial/LFTags'  -timeout 180m
=== RUN   TestAccLakeFormation_serial
=== RUN   TestAccLakeFormation_serial/LFTags
=== RUN   TestAccLakeFormation_serial/LFTags/basic
=== RUN   TestAccLakeFormation_serial/LFTags/many_values
=== RUN   TestAccLakeFormation_serial/LFTags/disappears
=== RUN   TestAccLakeFormation_serial/LFTags/values
=== RUN   TestAccLakeFormation_serial/ResourceLFTags
=== RUN   TestAccLakeFormation_serial/ResourceLFTags/tableWithColumns
=== RUN   TestAccLakeFormation_serial/ResourceLFTags/basic
=== RUN   TestAccLakeFormation_serial/ResourceLFTags/database
=== RUN   TestAccLakeFormation_serial/ResourceLFTags/databaseMultiple
=== RUN   TestAccLakeFormation_serial/ResourceLFTags/table
--- PASS: TestAccLakeFormation_serial (134.03s)
    --- PASS: TestAccLakeFormation_serial/LFTags (51.81s)
        --- PASS: TestAccLakeFormation_serial/LFTags/basic (9.82s)
        --- PASS: TestAccLakeFormation_serial/LFTags/many_values (9.46s)
        --- PASS: TestAccLakeFormation_serial/LFTags/disappears (8.06s)
        --- PASS: TestAccLakeFormation_serial/LFTags/values (24.46s)
    --- PASS: TestAccLakeFormation_serial/ResourceLFTags (82.22s)
        --- PASS: TestAccLakeFormation_serial/ResourceLFTags/tableWithColumns (19.14s)
        --- PASS: TestAccLakeFormation_serial/ResourceLFTags/basic (8.98s)
        --- PASS: TestAccLakeFormation_serial/ResourceLFTags/database (17.03s)
        --- PASS: TestAccLakeFormation_serial/ResourceLFTags/databaseMultiple (18.12s)
        --- PASS: TestAccLakeFormation_serial/ResourceLFTags/table (18.95s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/lakeformation	135.724s

Closes #26633

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. size/L Managed by automation to categorize the size of a PR. service/lakeformation Issues and PRs that pertain to the lakeformation service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Aug 30, 2022
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 30, 2022
@theophilechevalier
Copy link
Contributor

@ewbankkit Any chance this get reviewed soon? We're also interested.

Copy link
Contributor

@johnsonaj johnsonaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

$ make testacc PKG=lakeformation TESTS="TestAccLakeFormation_serial/^LFTags"
                                                                                                                                    
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lakeformation/... -v -count 1 -parallel 20 -run='TestAccLakeFormation_serial/^LFTags'  -timeout 180m
--- PASS: TestAccLakeFormation_serial (116.51s)
    --- PASS: TestAccLakeFormation_serial/LFTags (116.51s)
        --- PASS: TestAccLakeFormation_serial/LFTags/valuesOverFifty (39.31s)
        --- PASS: TestAccLakeFormation_serial/LFTags/basic (17.12s)
        --- PASS: TestAccLakeFormation_serial/LFTags/disappears (16.06s)
        --- PASS: TestAccLakeFormation_serial/LFTags/tagKeyComplex (14.50s)
        --- PASS: TestAccLakeFormation_serial/LFTags/values (29.52s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/lakeformation	119.807s

@johnsonaj
Copy link
Contributor

@frco9 thanks for the contribution! 🎉

@johnsonaj johnsonaj merged commit 349f944 into hashicorp:main Mar 28, 2023
@github-actions github-actions bot added this to the v4.61.0 milestone Mar 28, 2023
@github-actions
Copy link

This functionality has been released in v4.61.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!

@github-actions
Copy link

github-actions bot commented May 1, 2023

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2023
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. service/lakeformation Issues and PRs that pertain to the lakeformation service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
4 participants