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

AWS Quicksight Analysis and Dashboard creation failure issue #33109

Closed
amalakhtar opened this issue Aug 20, 2023 · 4 comments · Fixed by #33122
Closed

AWS Quicksight Analysis and Dashboard creation failure issue #33109

amalakhtar opened this issue Aug 20, 2023 · 4 comments · Fixed by #33122
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service.
Milestone

Comments

@amalakhtar
Copy link

amalakhtar commented Aug 20, 2023

Terraform Core Version

1.5.4

AWS Provider Version

5.12.0

Affected Resource(s)

aws_quicksight_analysis, aws_quicksight_dashboard

Expected Behavior

Create Analysis and Dashboard without error.

Actual Behavior

Terraform fails by throwing following error. But the dashboards are getting created successfully when checked on the console. Also terraform fails on "terraform plan" from next time throwing same error.
Also the analysis and dashboard is created successfully when using aws cli.

│ Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "9", "visuals", "17", "word_cloud_visual", "0", "chart_configuration", "0", "word_cloud_options", "0", "work_orientation"}
│ 
│   with module.qtools_ui[0].module.qfi[0].aws_quicksight_dashboard.qfi_dashboard,
│   on .terraform/modules/qtools_ui/infrastructure/modules/qfi/modules/quicksight.tf line 2156, in resource "aws_quicksight_dashboard" "qfi_dashboard":
│ 2156: resource "aws_quicksight_dashboard" "qfi_dashboard" {

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_quicksight_dashboard" "qfi_dashboard" {
  provider            = aws.xxx
  aws_account_id      = data.aws_caller_identity.current.id
  dashboard_id        = "qfi_dashboard"
  name                = "qfi_dashboard"
  version_description = "version1"
  source_entity {
    source_template {
      arn = "arn:aws:quicksight:us-east-1:223485597511:template/cudos_dashboard_v3"
      data_set_references {
        data_set_arn         = aws_quicksight_data_set.qfi_summary_view.arn
        data_set_placeholder = "summary_view"
      }
      data_set_references {
        data_set_arn         = aws_quicksight_data_set.qfi_ec2_running_cost_view.arn
        data_set_placeholder = "ec2_running_cost"
      }
      data_set_references {
        data_set_arn         = aws_quicksight_data_set.qfi_compute_savings_plan_eligible_spend_view.arn
        data_set_placeholder = "compute_savings_plan_eligible_spend"
      }
      data_set_references {
        data_set_arn         = aws_quicksight_data_set.qfi_s3_view.arn
        data_set_placeholder = "s3_view"
      }
      data_set_references {
        data_set_arn         = aws_quicksight_data_set.qfi_customer_all.arn
        data_set_placeholder = "customer_all"
      }
    }
  }
  permissions {
    actions = [
      "quicksight:ListDashboardVersions",
      "quicksight:UpdateDashboardPermissions",
      "quicksight:QueryDashboard",
      "quicksight:UpdateDashboard",
      "quicksight:DeleteDashboard",
      "quicksight:DescribeDashboardPermissions",
      "quicksight:UpdateDashboardPublishedVersion",
      "quicksight:DescribeDashboard"
    ]
    principal = "arn:aws:quicksight:us-east-1:${data.aws_caller_identity.current.id}:user/default/${var.principal-username}"
  }
}

Steps to Reproduce

terraform init
terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@amalakhtar amalakhtar added the bug Addresses a defect in current functionality. label Aug 20, 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 github-actions bot added the service/quicksight Issues and PRs that pertain to the quicksight service. label Aug 20, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 20, 2023
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Aug 21, 2023
@justinretzolk
Copy link
Member

Hey @amalakhtar 👋 Thank you for taking the time to raise this! I've opened a pull request aimed at fixing this.

@github-actions github-actions bot added this to the v5.14.0 milestone Aug 21, 2023
@github-actions
Copy link

This functionality has been released in v5.14.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 Sep 24, 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
Development

Successfully merging a pull request may close this issue.

2 participants