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

[Bug]: Error setting definition in aws_quicksight_template #31923

Closed
timameye-gantner opened this issue Jun 13, 2023 · 3 comments · Fixed by #32464
Closed

[Bug]: Error setting definition in aws_quicksight_template #31923

timameye-gantner opened this issue Jun 13, 2023 · 3 comments · Fixed by #32464
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service.
Milestone

Comments

@timameye-gantner
Copy link

timameye-gantner commented Jun 13, 2023

Terraform Core Version

1.3.4

AWS Provider Version

5.3.0

Affected Resource(s)

aws_quicksight_template
aws_quicksight_dashboard

Expected Behavior

The template should be update according to the source analysis.

Actual Behavior

Terraform throws an error while it's trying to set the definition.
This error occurs on multiple different addresses.

Relevant Error/Panic Output Snippet

Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "visuals", "0", "bar_chart_visual", "0", "chart_configuration", "0", "category_axis", "0", "scrollbar_options", "0", "visibile_range"}

Other errors:
Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "visuals", "0", "pivot_table_visual", "0", "chart_configuration", "0", "field_options", "0", "selected_field_options", "0", "visbility"}
Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "visuals", "0", "pivot_table_visual", "0", "chart_configuration", "0", "field_wells", "0", "pivot_table_aggregated_field_wells", "0", "row"}

Terraform Configuration Files

provider "aws" {
  region = "eu-west-1"
}

terraform {
  required_version = "~> 1.3.4"
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.3.0"
    }
  }
}

resource "aws_quicksight_template" "this" {
  template_id         = "template"
  name                = "Template"
  version_description = timestamp()

  definition {
    data_set_configuration {
      placeholder = "placeholder"
      data_set_schema {
        column_schema_list {
          name      = "column1"
          data_type = "STRING"
        }
        column_schema_list {
          name      = "column2"
          data_type = "STRING"
        }
      }
    }
    sheets {
      sheet_id = "sheet1"
      visuals {
        bar_chart_visual {
          visual_id = "visual1"
          chart_configuration {
            field_wells {
              bar_chart_aggregated_field_wells {
                category {
                  categorical_dimension_field {
                    field_id = "category-id"
                    column {
                      data_set_identifier = "placeholder"
                      column_name         = "column1"
                    }
                  }
                }
                colors {
                  categorical_dimension_field {
                    field_id = "color-id"
                    column {
                      data_set_identifier = "placeholder"
                      column_name         = "column2"
                    }
                  }
                }
              }
            }
            category_axis {
              scrollbar_options {
                visible_range {
                  percent_range {
                    from = "25.5"
                    to   = "36.7"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Steps to Reproduce

terraform init
terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

The same behavior occurs when a template is created through a definition block or when it's created from a source analysis.

References

No response

Would you like to implement a fix?

None

@timameye-gantner timameye-gantner added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jun 13, 2023
@github-actions github-actions bot added the service/quicksight Issues and PRs that pertain to the quicksight service. label Jun 13, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions
Copy link

This functionality has been released in v5.8.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
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2023
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. service/quicksight Issues and PRs that pertain to the quicksight service.
Projects
None yet
2 participants