-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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]: Terraform doesn't send ColumnIndex
and RowIndex
fields in API call when using value 0 in column_index
and row_index
fields in definition.sheets.layouts.configuration.grid_layout.format_text.elements
block in aws_quicksight_analysis
resource, causing QuickSight to incorrectly render the element on the grid
#33108
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
column_index
and row_index
fields in definition.sheets.layouts.configuration.grid_layout.format_text.elements
block in aws_quicksight_analysis
resource, causing QuickSight to incorrectly render the element on the gridcolumn_index
and row_index
fields in definition.sheets.layouts.configuration.grid_layout.format_text.elements
block in aws_quicksight_analysis
resource, causing QuickSight to incorrectly render the element on the grid
column_index
and row_index
fields in definition.sheets.layouts.configuration.grid_layout.format_text.elements
block in aws_quicksight_analysis
resource, causing QuickSight to incorrectly render the element on the gridColumnIndex
and RowIndex
fields in API call when using value 0 in column_index
and row_index
fields in definition.sheets.layouts.configuration.grid_layout.format_text.elements
block in aws_quicksight_analysis
resource, causing QuickSight to incorrectly render the element on the grid
Is there any update on this issue? |
I can confirm this behavior. The rowindex I can workaround just starting everything on 1 instead of zero , but it is harder with columnindex since that will take valuable space, while for rowindex it seems Quicksight to just removes the none used space on the top |
I couldn't work-around the issue because when setting RowIndex to 1 (or ColumnIndex, I don't remember), I got an error. layouts {
configuration {
grid_layout {
elements {
element_id = random_uuid.qs_analysis_eks_insights_sheet_executive_summary_visual_kpi_unmounted_pvs_cost_uuid.id
element_type = "VISUAL"
column_index = 30
column_span = 6
row_index = 3
row_span = 3
}
elements {
element_id = random_uuid.qs_analysis_eks_insights_sheet_executive_summary_text_box_general_spend_and_trends_summary_uuid.id
element_type = "TEXT_BOX"
column_index = 0
column_span = 36
row_index = 0
row_span = 3
}
}
}
} The result of this config should be:
I confirm this is working as expected when using AWS CLI (the 0 values are sent).
The workaround I found is:
Config below: layouts {
configuration {
grid_layout {
elements {
element_id = random_uuid.qs_analysis_eks_insights_sheet_executive_summary_text_box_general_spend_and_trends_summary_uuid.id
element_type = "TEXT_BOX"
column_index = 0
column_span = 36
row_index = 0
row_span = 3
}
elements {
element_id = random_uuid.qs_analysis_eks_insights_sheet_executive_summary_visual_kpi_unmounted_pvs_cost_uuid.id
element_type = "VISUAL"
column_index = 30
column_span = 6
row_index = 0
row_span = 3
}
}
}
} The result is:
I confirm it behaves the same when I use AWS CLI and in the JSON, I remove the fields that were 0 in Terraform. If anyone is aware of another workaround, I'd be happy to hear |
Can someone please prioritize this issue? |
@atlesp, your workaround works (starting from 1), I just misunderstood initially. layouts {
configuration {
grid_layout {
elements {
element_id = random_uuid.qs_analysis_eks_insights_sheet_executive_summary_text_box_general_spend_and_trends_summary_uuid.id
element_type = "TEXT_BOX"
column_index = 1
column_span = 35
row_index = 1
row_span = 3
}
elements {
element_id = random_uuid.qs_analysis_eks_insights_sheet_executive_summary_visual_kpi_unmounted_pvs_cost_uuid.id
element_type = "VISUAL"
column_index = 30
column_span = 6
row_index = 4
row_span = 3
}
}
}
} I see what you mean with the Still, can someone please prioritize this issue? |
This functionality has been released in v5.26.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.5.3
AWS Provider Version
5.13.1
Affected Resource(s)
column_index
androw_index
fields indefinition.sheets.layouts.configuration.grid_layout.format_text.elements
block inaws_quicksight_analysis
resource, causing QuickSight to incorrectly render the element on the gridExpected Behavior
When specifying 0 as a value in
column_index
androw_index
fields indefinition.sheets.layouts.configuration.grid_layout.format_text.elements
block inaws_quicksight_analysis
resource, Terraform should send these fields with 0 value in create or update operationsActual Behavior
When specifying 0 as a value in
column_index
androw_index
fields indefinition.sheets.layouts.configuration.grid_layout.format_text.elements
block inaws_quicksight_analysis
resource, Terraform doesn't send these fields in create or update operations, causing QuickSight to incorrectly render the element on the gridRelevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Run
terraform apply
either when creating theaws_quicksight_analysis
resource from scratch or when updating it (after adding the relevant block)Debug Output
After running terraform apply to create or update the
aws_quicksight_analysis
resource, you'll see the following logs (an example from an update operation):After the
http.request.body=
there will be the body of the QuickSightUpdateAnalysis
API call.Here's the relevant snippet:
As you can see, the
ColumnIndex
andRowIndex
fields aren't present in theElement
block.They should be present, with 0 value, since this is what was specified in the Terraform configuration
Panic Output
No response
Important Factoids
I saw this issue only in the
ColumnIndex
andRowIndex
fields, but I suppose it'll be recreated also in theColumnSpan
andRawSpan
fields (but I didn't try)References
To prove that including the
ColumnIndex
andRowIndex
fields with 0 value solves the issue, I executed theUpdateAnalysis
API call using AWS CLI, providing these fields with 0 value.I then refreshed the QuickSIght Analysis in my browser, and I saw the elements are rendered properly, as expected, in the grid
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: