- Newest
- Most votes
- Most comments
It sounds like you're encountering some challenges with migrating QuickSight assets from your Dev to Prod AWS account. The process of copying QuickSight objects between accounts has indeed been complex in the past, but there are now improved methods available that can simplify this process.
The QuickSight Asset Bundle APIs, introduced recently, offer a more streamlined approach to migrating QuickSight components from one environment to another. These APIs allow you to create a cohesive artifact that includes the top-level analysis component and its dependencies, which can be bundled and exported into the destination AWS account in a single step. This approach significantly reduces the operational complexity and potential for errors that were common in the previous multi-step process.
To use this method:
-
In your Dev account, use the QuickSight Asset Bundle APIs to create an export job that includes all the necessary components (datasets, analyses, dashboards, etc.).
-
Once the export is complete, you can then use these APIs to start an import job in your Prod account.
This process should help you avoid the "chicken and egg" problem you're experiencing with templates and analyses, as it handles the dependencies and relationships between different QuickSight assets automatically.
If you prefer to stick with your current Python-based approach, you might need to ensure that you're importing the assets in the correct order. Typically, you would import datasets first, then templates, then analyses, and finally dashboards. Make sure your code is handling these dependencies correctly.
Another option to consider is using the CLOUDFORMATION_JSON export format instead of QUICKSIGHT_JSON. This format exports your QuickSight assets as a CloudFormation template, which can provide more robust automation and better integration with other AWS services. It might help resolve some of the dependency issues you're encountering.
Remember that when migrating between accounts, you need to ensure that the target account (Prod in your case) has the necessary permissions to access any referenced data sources or S3 buckets that might be in the source account (Dev).
If you continue to face issues, it might be helpful to review the specific error messages you're receiving and ensure that all necessary permissions and access rights are properly set up in your Prod account.
Sources
Automate Deployment of Amazon QuickSight Assets with AWS Step Functions and QuickSight Asset Bundle APIs | AWS Partner Network (APN) Blog
Choosing between the two export options of the Amazon QuickSight asset deployment APIs | AWS Business Intelligence Blog
Using start_asset_bundle_export_job seems to be working for me, I just need to figure out how to update the permissions during import so I don't need an admin to give me permissions to the objects after they've been imported.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago