Using the AWS SDK for Python to manage Amazon QuickSight
The AWS SDK for Python (Boto3) could be used to create, configure, and manage Amazon QuickSight. There are various use cases for it, from quickly granting permission to exporting QuickSight assets from one account to another account. The following script in this recipe will demonstrate how to update permissions for data sources, datasets, analyses, dashboards, and themes in Amazon QuickSight. It grants a specific user or role the necessary permissions to access and manage these resources.
Getting ready
Before starting, ensure you have the following prerequisites:
- An active AWS account with a QuickSight subscription
- Python 3 and Jupyter Notebook installed on your system
- Boto3 and PyYAML libraries installed (
pip install
boto3 PyYAML
) - AWS credentials and profile configured
How to do it…
- From your AWS CLI, retrieve the Amazon QuickSight Principal ARN:
aws quicksight list-users --region...