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

r/aws_lakeformation_permissions: don't throw no permissions found #18505

Conversation

jackbatzner
Copy link
Contributor

@jackbatzner jackbatzner commented Mar 31, 2021

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

Closes #18446
Closes #17633
Closes #19063
Closes #19064

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSLakeFormation_serial'

--- PASS: TestAccAWSLakeFormation_serial (488.77s)
    --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions (171.09s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableWithColumnsDataSource (39.37s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/basicDataSource (36.57s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/dataLocationDataSource (35.27s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/databaseDataSource (28.64s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableDataSource (31.24s)
    --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings (75.14s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/dataSource (17.86s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/basic (17.49s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/disappears (20.21s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/withoutCatalogId (19.58s)
    --- PASS: TestAccAWSLakeFormation_serial/Permissions (134.94s)
        --- PASS: TestAccAWSLakeFormation_serial/Permissions/dataLocation (28.30s)
        --- PASS: TestAccAWSLakeFormation_serial/Permissions/database (26.42s)
        --- PASS: TestAccAWSLakeFormation_serial/Permissions/selectPermissions (27.54s)
        --- PASS: TestAccAWSLakeFormation_serial/Permissions/wildcardPermissions (27.31s)
        --- PASS: TestAccAWSLakeFormation_serial/Permissions/basic (25.38s)
    --- PASS: TestAccAWSLakeFormation_serial/TablePermissions (107.60s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableName (28.13s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcard (25.02s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWithColumns (26.94s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWithColumnsAndTable (27.51s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       492.418s
...

@jackbatzner jackbatzner requested a review from a team as a code owner March 31, 2021 16:02
@jackbatzner
Copy link
Contributor Author

Reproduced bug with wildcardPermissions test

=== RUN   TestAccAWSLakeFormation_serial/Permissions/wildcardPermissions
    resource_aws_lakeformation_permissions_test.go:246: Step 1/1 error: Error running apply: exit status 1
        
        Error: error reading Lake Formation permissions: no permissions found
        
          on terraform_plugin_test.tf line 56, in resource "aws_lakeformation_permissions" "test":
          56: resource "aws_lakeformation_permissions" "test" {

@ghost ghost added size/M 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 Mar 31, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 31, 2021
@jackbatzner jackbatzner changed the title [WIP] r/aws_lakeformation_permissions: don't throw no permissions found r/aws_lakeformation_permissions: don't throw no permissions found Mar 31, 2021
@YakDriver YakDriver self-assigned this Apr 28, 2021
@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)

@YakDriver YakDriver added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 29, 2021
@YakDriver YakDriver force-pushed the b-aws_lakeformation_permissions-no-perms-found branch from 9f549e5 to 1e428d8 Compare April 29, 2021 21:34
@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. and removed size/M Managed by automation to categorize the size of a PR. labels May 4, 2021
@YakDriver YakDriver force-pushed the b-aws_lakeformation_permissions-no-perms-found branch from 4677cf8 to 1c677ea Compare May 4, 2021 23:24
@YakDriver YakDriver added this to the v3.39.0 milestone May 4, 2021
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

Looks great! 🎉

Output from acceptance tests (us-west-2):

--- PASS: TestAccAWSLakeFormation_serial (444.71s)
    --- PASS: TestAccAWSLakeFormation_serial/TablePermissions (202.75s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/implicitTablePermissions (33.20s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/selectPermissions (25.30s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableName (25.13s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcard (21.92s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcardPermissions (24.59s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWithColumns (24.64s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/columnWildcardPermissions (24.67s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/implicitTableWithColumnsPermissions (23.30s)
    --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions (130.47s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/basicDataSource (22.09s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/dataLocationDataSource (26.89s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/databaseDataSource (26.44s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableDataSource (28.89s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableWithColumnsDataSource (26.15s)
    --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings (44.09s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/basic (10.74s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/disappears (10.75s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/withoutCatalogId (10.53s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/dataSource (12.07s)
    --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions (67.40s)
        --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/basic (21.02s)
        --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation (24.79s)
        --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/database (21.59s)

Output from acceptance tests (GovCloud):

--- PASS: TestAccAWSLakeFormation_serial (471.33s)
    --- PASS: TestAccAWSLakeFormation_serial/TablePermissions (200.00s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcardPermissions (24.89s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWithColumns (23.65s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/columnWildcardPermissions (23.82s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/implicitTableWithColumnsPermissions (29.06s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/implicitTablePermissions (24.46s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/selectPermissions (23.46s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableName (23.63s)
        --- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcard (27.03s)
    --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions (138.36s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/dataLocationDataSource (27.26s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/databaseDataSource (31.00s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableDataSource (27.45s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableWithColumnsDataSource (24.61s)
        --- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/basicDataSource (28.04s)
    --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings (60.18s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/withoutCatalogId (14.57s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/dataSource (15.98s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/basic (14.66s)
        --- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/disappears (14.97s)
    --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions (72.79s)
        --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/basic (22.55s)
        --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation (27.54s)
        --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/database (22.70s)

@YakDriver YakDriver merged commit b15be48 into hashicorp:main 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 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 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. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/lakeformation Issues and PRs that pertain to the lakeformation service. size/XXL 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
3 participants