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

Lake Formation LF-Tag Expression Limit Update #30095

Closed
hocanint-amzn opened this issue Mar 17, 2023 · 6 comments · Fixed by #26643
Closed

Lake Formation LF-Tag Expression Limit Update #30095

hocanint-amzn opened this issue Mar 17, 2023 · 6 comments · Fixed by #26643
Labels
bug Addresses a defect in current functionality. service/lakeformation Issues and PRs that pertain to the lakeformation service.

Comments

@hocanint-amzn
Copy link

hocanint-amzn commented Mar 17, 2023

Description

There is a discrepancy between the number items that are allowed in an LF-Tag expression when granting permissions that is limiting some use cases. The current code assumes a limit of 5, where as the service documentation does not specify a limit (See references). We would like to update the limit to match the documentation. If we feel uncomfortable not leaving a limit to the number of items in the expression, a safe limit would be 20.

Just to note, I am an employee in the Lake Formation Service team at AWS and this is a request on behalf some our customers.

Thank you!

References

Location where the limit exists:

Would you like to implement a fix?

No

@hocanint-amzn hocanint-amzn added the needs-triage Waiting for first response or review from a maintainer. label Mar 17, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@justinretzolk
Copy link
Member

Related: #26633
Related: #26546

@justinretzolk justinretzolk added bug Addresses a defect in current functionality. service/lakeformation Issues and PRs that pertain to the lakeformation service. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 17, 2023
@hocanint-amzn
Copy link
Author

@justinretzolk Thanks for taking a look a this issue. Just to confirm that this is a different limit that is being hit than the related issues posted, and thus is not a duplicate. Just want to make sure that we are not closing out this issue. Thanks!

@justinretzolk
Copy link
Member

Hey @hocanint-amzn, thanks for confirming those are different limits, and apologies for the misunderstanding on my part!

@wzzzrd86
Copy link
Contributor

@hocanint-amzn I'd like to take a look at this, and think I have reproduced what you are talking about very simply.

Do you have an example config file to share?

This is my very basic recreation of the issue.

resource "aws_lakeformation_permissions" "<my test>" {
 principal   = "<my arn>"
 permissions = ["CREATE_TABLE", "ALTER", "DROP"]


lf_tag_policy {
   resource_type = "DATABASE"

   expression {
     key    = "test"
     values = ["a"]
   }
   expression {
     key    = "test"
     values = ["b"]
   }
   expression {
     key    = "test"
     values = ["c"]
   }
   expression {
     key    = "test"
     values = ["d"]
   }
   expression {
     key    = "test"
     values = ["e"]
   }
   expression {
     key    = "test"
     values = ["f"]
   }
 }

Which produces the following
image

@github-actions
Copy link

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 have found a problem that seems similar to this, 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 18, 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants