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]: Not able to generate config for aws_quicksight_analysis resource #34243

Open
manueltarouca opened this issue Nov 3, 2023 · 3 comments
Labels
bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/quicksight Issues and PRs that pertain to the quicksight service.

Comments

@manueltarouca
Copy link
Contributor

manueltarouca commented Nov 3, 2023

Terraform Core Version

1.6.3

AWS Provider Version

5.24.0

Affected Resource(s)

  • aws_quicksight_analysis
  • aws_quicksight_dashboard

Expected Behavior

Generated configuration file is created using tf plan -generate-config-out=generated.tf.

Actual Behavior

Provider panics when it encounters a different schema for the resource.

Relevant Error/Panic Output Snippet

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "layouts", "0", "configuration", "0", "free_form_layout", "0", "canvas_size_options", "0", "canvas_size_options"}

Terraform Configuration Files

import {
  id = "censored"
  to = aws_quicksight_analysis.example
}

Steps to Reproduce

  • Look for the the id of the AWS Quicksight analysis to import
  • Create configuration file with import statement
  • run tf init
  • run tf plan -generate-config-out=generated.tf

Debug Output

2023-11-03T09:55:09.513Z [ERROR] vertex "aws_quicksight_analysis.example" error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "layouts", "0", "configuration", "0", "free_form_layout", "0", "canvas_size_options", "0", "canvas_size_options"}
2023-11-03T09:55:09.513Z [ERROR] vertex "aws_quicksight_analysis.example (expand)" error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "layouts", "0", "configuration", "0", "free_form_layout", "0", "canvas_size_options", "0", "canvas_size_options"}
2023-11-03T09:55:09.524Z [INFO]  backend/local: plan operation completed

Panic Output

Prefer to not disclose additional output due to sensitive values.

Important Factoids

These Quicksight analysis have been cloned from an initial analysis that has over more than a year.

References

No response

Would you like to implement a fix?

No

@manueltarouca manueltarouca added the bug Addresses a defect in current functionality. label Nov 3, 2023
@github-actions github-actions bot added the service/quicksight Issues and PRs that pertain to the quicksight service. label Nov 3, 2023
Copy link

github-actions bot commented Nov 3, 2023

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.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 3, 2023
@justinretzolk justinretzolk added good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 7, 2023
@na47io
Copy link

na47io commented May 20, 2024

any chance of this being looked at? looks like the issue might be with keeping the API schema up to date in the code?

@na47io
Copy link

na47io commented May 21, 2024

I guess I can pick this up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/quicksight Issues and PRs that pertain to the quicksight service.
Projects
None yet
Development

No branches or pull requests

3 participants