- Newest
- Most votes
- Most comments
The error message you're encountering is indeed indicating a limitation with Amazon QuickSight subscriptions. Based on the error "Failed to unsubscribe as the account is not an Enterprise account," it appears that the DeleteAccountSubscription API operation is only available for Enterprise edition subscriptions of QuickSight, not for Standard edition subscriptions.
The DeleteAccountSubscription operation is designed to delete a QuickSight account, but this functionality seems to be restricted to Enterprise accounts only. When you try to use this operation on a Standard subscription, you receive the PreconditionNotMetException because one of the preconditions for using this API is having an Enterprise account.
For QuickSight Standard subscriptions, there doesn't appear to be a direct API method to unsubscribe or delete the account through the AWS SDK or CLI. This limitation isn't clearly documented in the API references, which is why the error message might seem misleading.
To remove a Standard subscription, you might need to:
- Upgrade to an Enterprise subscription first, then use the DeleteAccountSubscription API
- Contact AWS Support for assistance with removing the Standard subscription
- Use the QuickSight console directly instead of the API/CLI
This is a limitation to be aware of when automating QuickSight operations with CDK, as the deletion process for Standard subscriptions cannot be fully automated through the available APIs.
Sources
DeleteAccountSubscription - Amazon Quick Sight
delete-account-subscription — AWS CLI 2.27.41 Command Reference
QuickSightClient (AWS SDK for Java - 2.21.29)
QuickSightAsyncClient (AWS SDK for Java - 2.21.29)
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
