-
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
r/lakeformation_permissions: Fix update bug #19817
Conversation
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 🚀.
Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSLakeFormation_serial'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLakeFormation_serial -timeout 180m
=== RUN TestAccAWSLakeFormation_serial
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/basic
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/disappears
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/withoutCatalogId
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/dataSource
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/basic
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/database
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/disappears
=== RUN TestAccAWSLakeFormation_serial/TablePermissions
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/implicitTablePermissions
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/selectPermissions
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/tableName
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/tableWildcard
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/tableWildcardPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardExcludedColumnsPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/implicitTableWithColumnsPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/tableWithColumns
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/tableDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/tableWithColumnsDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/basicDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/dataLocationDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/databaseDataSource
--- PASS: TestAccAWSLakeFormation_serial (605.13s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings (44.50s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/basic (12.02s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/disappears (10.82s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/withoutCatalogId (10.51s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/dataSource (11.15s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions (159.32s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/basic (21.95s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation (27.88s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/database (23.02s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/disappears (86.48s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions (123.23s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/implicitTablePermissions (24.93s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/selectPermissions (23.23s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableName (26.52s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcard (22.68s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcardPermissions (25.87s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions (139.62s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardExcludedColumnsPermissions (24.28s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardPermissions (26.70s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/implicitTableWithColumnsPermissions (25.95s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/tableWithColumns (62.68s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions (138.46s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableDataSource (30.85s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableWithColumnsDataSource (28.31s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/basicDataSource (22.06s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/dataLocationDataSource (29.11s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/databaseDataSource (28.13s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 609.295s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSLakeFormation_serial'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLakeFormation_serial -timeout 180m
=== RUN TestAccAWSLakeFormation_serial
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/basic
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/database
=== RUN TestAccAWSLakeFormation_serial/BasicPermissions/disappears
=== RUN TestAccAWSLakeFormation_serial/TablePermissions
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/tableWildcardPermissions
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/implicitTablePermissions
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/selectPermissions
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/tableName
=== RUN TestAccAWSLakeFormation_serial/TablePermissions/tableWildcard
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardExcludedColumnsPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/implicitTableWithColumnsPermissions
=== RUN TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/tableWithColumns
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/basicDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/dataLocationDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/databaseDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/tableDataSource
=== RUN TestAccAWSLakeFormation_serial/DataSourcePermissions/tableWithColumnsDataSource
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/basic
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/disappears
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/withoutCatalogId
=== RUN TestAccAWSLakeFormation_serial/DataLakeSettings/dataSource
--- PASS: TestAccAWSLakeFormation_serial (651.02s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions (166.47s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/basic (29.41s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation (29.60s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/database (23.57s)
--- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/disappears (83.89s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions (135.03s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcardPermissions (26.15s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/implicitTablePermissions (30.01s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/selectPermissions (25.24s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableName (24.54s)
--- PASS: TestAccAWSLakeFormation_serial/TablePermissions/tableWildcard (29.08s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions (150.83s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardExcludedColumnsPermissions (25.07s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/columnWildcardPermissions (25.41s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/implicitTableWithColumnsPermissions (30.24s)
--- PASS: TestAccAWSLakeFormation_serial/TableWithColumnsPermissions/tableWithColumns (70.11s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions (137.93s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/basicDataSource (24.52s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/dataLocationDataSource (30.67s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/databaseDataSource (28.41s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableDataSource (29.13s)
--- PASS: TestAccAWSLakeFormation_serial/DataSourcePermissions/tableWithColumnsDataSource (25.20s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings (60.77s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/basic (15.54s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/disappears (14.82s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/withoutCatalogId (14.78s)
--- PASS: TestAccAWSLakeFormation_serial/DataLakeSettings/dataSource (15.62s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 654.295s
e9caa60
to
82235d0
Compare
…ons_dataLocation'. Previous acceptance test output: === RUN TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation testing_new.go:63: Error running post-test destroy, there may be dangling resources: exit status 1 2021/06/17 09:38:54 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3 Error: error deregistering Lake Formation Resource (arn:aws:s3:::tf-acc-test-7389732714506454004): InvalidInputException: Must manually delete service-linked role to deregister last S3 location. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation -timeout 180m === RUN TestAccAWSLakeFormation_serial === RUN TestAccAWSLakeFormation_serial/BasicPermissions === RUN TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation --- PASS: TestAccAWSLakeFormation_serial (29.94s) --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions (29.94s) --- PASS: TestAccAWSLakeFormation_serial/BasicPermissions/dataLocation (29.94s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 33.278s
…terraform-provider-aws into b-lakeformation-19643
This functionality has been released in v3.46.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 #19643
Closes #19465
Closes #19397
Closes #19409
Closes #19860
This PR address 3 problems:
column_names
orexclude_column_names
could cause diffs when reapplying (see Lakeformation table permissions need to be alphabetically ordered - otherwise aws_lakeformation_permissions stay out of sync #19465)Output from acceptance testing (GovCloud):