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.85k stars 9.2k forks source link

[Bug]: [Quicksight] top_bottom_filter requires time_granularity although field is not mandatory as stated in AWS API documentation #33294

Open tfrincu opened 1 year ago

tfrincu commented 1 year ago

Terraform Core Version

1.5.0

AWS Provider Version

5.15.0

Affected Resource(s)

aws_quicksight_analysis

Expected Behavior

Applying a top_bottom_filter should work without having to specify time granularity

Actual Behavior

Applying the top_bottom_filter without time granularity fails is Missing required argument error. As stated per AWS API documentation field is not required and providing it allows apply ing without any issues but seems to break the filter in Quicksight (same filter configurations applied manually without the time granularity for a string column works; time granularity is not an option when configuring manually a string column for this filter).

Relevant Error/Panic Output Snippet

╷
│ Error: Missing required argument
│
│   on analysis.tf line 105, in resource "aws_quicksight_analysis" "example_analysis":
│  105:         top_bottom_filter {
│
│ The argument "time_granularity" is required, but no definition was found.

Terraform Configuration Files

    filter_groups {
      cross_dataset   = "SINGLE_DATASET"
      filter_group_id = "filter-group-id"
      status          = "ENABLED"

      filters {
        top_bottom_filter {
          column {
            data_set_identifier = "1"
            column_name         = "string_column"
          }

          aggregation_sort_configuration {
            sort_direction = "DESC"
            aggregation_function {
              categorical_aggregation_function = "COUNT"
            }

            column {
              column_name         = "string_column"
              data_set_identifier = "1"
            }
          }
          filter_id = "filter-id"
          limit     = 10

        }
      }

      scope_configuration {
        selected_sheets {
          sheet_visual_scoping_configurations {
            scope      = "SELECTED_VISUALS"
            sheet_id   = local.sheet_id
            visual_ids = ["visual-id"]
          }
        }
      }
    }

Steps to Reproduce

Configure filter and apply it

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue