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

aws_lakeformation_permissions throwing "no permissions found" for wildcard table #18446

Closed
josh-aguilar opened this issue Mar 28, 2021 · 5 comments · Fixed by #18505
Closed
Assignees
Labels
bug Addresses a defect in current functionality. service/lakeformation Issues and PRs that pertain to the lakeformation service.
Milestone

Comments

@josh-aguilar
Copy link

josh-aguilar commented Mar 28, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue 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 issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform: v0.13.5
Provider: v0.34.0

Affected Resource(s)

  • aws_lakeformation_permissions

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "aws_lakeformation_permissions" "test" {
  principal = "arn:aws:iam::XXXXXXXXXXXX:role/MyRole"
  permissions = ["ALL", "ALTER", "DELETE", "DESCRIBE", "DROP", "INSERT", "SELECT"]
  permissions_with_grant_option = ["ALL", "ALTER", "DELETE", "DESCRIBE", "DROP", "INSERT", "SELECT"]
  table {
    database_name = "my_database"
    wildcard = true
  }
}

Debug Output

Panic Output

Expected Behavior

Running a terraform apply should succeed without any error messages.

Actual Behavior

When running a terraform apply the permissions are applied successfully as shown in this screenshot.
Screen Shot 2021-03-29 at 12 46 52 PM

However, terraform throws the following error after finishing.

Error: error reading Lake Formation permissions: no permissions found

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@ghost ghost added the service/lakeformation Issues and PRs that pertain to the lakeformation service. label Mar 28, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 28, 2021
@jackbatzner
Copy link
Contributor

I can take a look at this one considering I caused it 😊 . I know the fix and just want to write a test first to confirm the situation here

@YakDriver
Copy link
Member

YakDriver commented Apr 29, 2021

Additional Principals Perm Delete/Revoke
Related #16848 (Issue)
Related #16916
Related #18034 (Issue)
Related #18374
Related #17633 (Issue)
Related #18446 (Issue)
Related #18505
Related #19063 (Issue)
Related #19064 (Issue)

@akuzni2
Copy link

akuzni2 commented May 4, 2021

That would be great to get a fix for this one - currently I have to write a block of TF to specify permissions for every table in my lake formation DB.

YakDriver pushed a commit to jackbatzner/terraform-provider-aws that referenced this issue May 4, 2021
@github-actions github-actions bot added this to the v3.39.0 milestone May 5, 2021
@ghost
Copy link

ghost commented May 7, 2021

This has been released in version 3.39.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 for triage. Thanks!

@github-actions
Copy link

github-actions bot commented Jun 6, 2021

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 Jun 6, 2021
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.

4 participants