hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.7k stars 9.07k forks source link

[Bug]: LakeFormation data cells filter error with using all_rows_wildcard attribute #36574

Closed sleepwithcoffee closed 3 months ago

sleepwithcoffee commented 5 months ago

Terraform Core Version

1.7.4

AWS Provider Version

5.42.0

Affected Resource(s)

Expected Behavior

Actual Behavior

Relevant Error/Panic Output Snippet

╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to
│ aws_lakeformation_data_cells_filter.this,
│ provider "provider[\"registry.terraform.io/hashicorp/aws\"].datalake" produced an unexpected new value: .table_data[0].row_filter[0].filter_expression: was null,
│ but now cty.StringVal("TRUE").
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Terraform Configuration Files

terraform {

required_providers { aws = { source = "hashicorp/aws" version = "~> 5.0" } }

required_version = ">= 0.13" }

Steps to Reproduce

resource "aws_lakeformation_data_cells_filter" "this" {

    table_data {
        name = "name"    
        table_name = "table_name"
        database_name  = "database_name"
        table_catalog_id = "table_catalog_id"

        row_filter {
            all_rows_wildcard {}
        }

    }
}

Debug Output

No response

Panic Output

No response

Important Factoids

Workaround:

resource "aws_lakeformation_data_cells_filter" "this" {

    table_data {
        name = "name"    
        table_name = "table_name"
        database_name  = "database_name"
        table_catalog_id = "table_catalog_id"

        row_filter {
            # BUG: must set filter_expression = "TRUE" as a workaround instead of using all_rows_wildcard
            filter_expression = "TRUE"
            # all_rows_wildcard {}
        }

    }
}

References

Workaround outcome:

image

image

Expected outcome when this is properly fixed:

image

image

Would you like to implement a fix?

None

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 3 months ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 3 months ago

This functionality has been released in v5.50.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[bot] commented 2 months ago

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.