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]: Failure to update aws_quicksight_data_source.name #32981

Closed
ss49919201 opened this issue Aug 11, 2023 · 3 comments · Fixed by #33061
Closed

[Bug]: Failure to update aws_quicksight_data_source.name #32981

ss49919201 opened this issue Aug 11, 2023 · 3 comments · Fixed by #33061
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service.
Milestone

Comments

@ss49919201
Copy link
Contributor

Terraform Core Version

1.5.5

AWS Provider Version

5.12.0

Affected Resource(s)

aws_quicksight_data_source

Expected Behavior

If apply is executed with a difference in aws_quicksight_data_source.name, the UpdateDataSource API should be executed and succeed.

Actual Behavior

Error occurs due to incorrect DataSourceParameters.

Relevant Error/Panic Output Snippet

Error: updating QuickSight Data Source (xxxxxxxxx/example-id): InvalidParameterValueException: DataSourceParameters field is incorrectly set

Terraform Configuration Files

resource "aws_quicksight_data_source" "default" {
  data_source_id = "example-id"
  name           = "New DataSource"

  parameters {
    s3 {
      manifest_file_location {
        bucket = var.my_bucket
        key    = "example.json"
      }
    }
  }

  type = "S3"
}

Steps to Reproduce

Run terraform apply.
Then replace name with any string and run terraform apply again.

e.g.

resource "aws_quicksight_data_source" "default" {
  data_source_id = "example-id"
  name           = "Updated DataSource"

  parameters {
    s3 {
      manifest_file_location {
        bucket = var.my_bucket
        key    = "example.json"
      }
    }
  }

  type = "S3"
}

Debug Output

No response

Panic Output

No response

Important Factoids

cf. https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/quicksight/data_source.go#L742-L756
I don't think HasChange should be called.
I feel like I need to add a parameter to the Input even if there is no value update.

References

No response

Would you like to implement a fix?

None

@ss49919201 ss49919201 added the bug Addresses a defect in current functionality. label Aug 11, 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 11, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 11, 2023
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Aug 14, 2023
@github-actions github-actions bot added this to the v5.26.0 milestone Nov 11, 2023
Copy link

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!

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 Dec 17, 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