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.83k stars 9.17k forks source link

[Bug]: Quicksight YAxis data based range failed to apply #38049

Open yev-anna opened 4 months ago

yev-anna commented 4 months ago

Terraform Core Version

1.5.6

AWS Provider Version

5.17.0

Affected Resource(s)

Expected Behavior

YAxis is based on data range image

Actual Behavior

Dashboard/analysis fails to be updated

Relevant Error/Panic Output Snippet

ā”‚ Error: updating Amazon QuickSight Dashboard (123,example): ValidationException: 1 validation error detected: Value 'AxisDisplayRange(minMax=null, dataDriven=null)' at 'definition.sheets.1.member.visuals.1.member.lineChartVisual.chartConfiguration.primaryYAxisDisplayOptions.axisOptions.dataOptions.numericAxisOptions.range' failed to satisfy constraint: Only 1 member of [minMax, dataDriven] should be provided for structure AxisDisplayRange

Terraform Configuration Files

resource "aws_quicksight_dashboard" "example_dashboard" {
  dashboard_id        = "example"
  name                = "example"
  definition {
    data_set_identifiers_declarations {
        ...
    }
    sheets {
      ...
      visuals {
        line_chart_visual {
          visual_id = "example"
          chart_configuration {
            field_wells {
              ...
            }
            primary_y_axis_display_options {
              axis_options {
                data_options {
                  numeric_axis_options {
                    range {
                      data_driven { }
                    }
                  }
                }
              }
            }
          }
        }
      }     
    }
  }
}

Steps to Reproduce

terraform init terraform plan terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

https://docs.aws.amazon.com/quicksight/latest/APIReference/API_AxisDisplayDataDrivenRange.html

Would you like to implement a fix?

None

github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue