How to give QuickSight permissions to AWS IoT Analytics database?

Take a look at the linked documentation there. It is also here: Accessing AWS resources - Amazon QuickSight