Error: Permissions for DataSource arn:aws:quicksight:us-east-1:123:datasource/ds cannot be updated while its status is UPDATE_IN_PROGRESS; please try again

Looks like there’s a bug somewhere and/or a race condition.

I am using CF to add permissions to an existing DataSource.

And it’s failing with:

The stack named … failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource of type ‘AWS::QuickSight::DataSource’ with identifier ‘xyz’ has a conflict. Reason: Permissions for DataSource arn:aws:quicksight:us-east-1:123:datasource/xyz cannot be updated while its status is UPDATE_IN_PROGRESS; please try again (Service: QuickSight, Status Code: 409, Request ID: null).

Adding permissions is the only change I am applying, so there cannot be any other “in progress” update other than the permission change itself.

This behaviour is also corroborated by this blog post by someone else:

@m0ltar Thank you for letting us know. I would recommend filing a case with AWS Support where we can dive into the details so that we can help you further. Here are the steps to open a support case. If your company has someone who manages your AWS account, you might not have direct access to AWS Support and will need to raise an internal ticket to your IT team or whomever manages your AWS account. They should be able to open an AWS Support case on your behalf. Hope this helps!