-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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]: aws_quicksight_data_source ResourceExistsException for same data_source_id but different name and credentials #32420
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @kajohnson-77 👋 Thank you for taking the time to raise this! The error message looks to be coming from the AWS API itself, so I took a look over the API reference for
Based on my read, it seems like you can connect to the same data source with multiple different |
Thank you for following this into the AWS API. Since this is the intended behavior from that API, I will follow-up with AWS. I believe we can close out this issue/bug. |
Hey @kajohnson-77 👋 Before we close this out, I'd be remiss if I didn't mention that you can almost certainly get around this by not using the |
Hi @justinretzolk , thank you for the update and recommendations to try these params with unique values, we'll try it out and see what we get. I did find another issue though, and will open a new bug. We rotated the secret that is part of the credentials parameter, and it seems terraform is only sending that 'change' (along with name and id) to the update-data-source api, and its not enough, all required params need to be sent. |
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.3.3
AWS Provider Version
4.67.0
Affected Resource(s)
aws_quicksight_data_source
Arguments:
data_source_id
name
credentials
type = REDSHIFT
Expected Behavior
Terraform AWS provider for
aws_quicksight_data_source
will create a new Quicksight data source, with the givenname
, connecting todata_source_id
with the providedcredentials
.Together the
data_source_id
andname
should be unique. This is due to differentcredentials
being provided to connect to the data source, so that underlying grants in redshift can be used to scope a users ability to use and select from specific schemas and tables.Note we havew in place a cloudformation_stack definition for a quicksight data source with the same data_source (redshift), and it is able to exist along with the terraform provider resource. We are able to leverage both data sources in Quicksight with correct access to the redshift schemas and tables per connection credentials used.
Actual Behavior
An error is reported when attempting to create the resource if the data_source_id is already a terraformed aws_quicksight_data_source.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
aws_quicksight_data_source
with the given parameters above.aws_quicksight_data_source
with the given parameters above, but change thename
andcredentials
arguments.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: