How to connect Redshift database in different account using IAM or Temporary Credential

Hi,

How can we connect a Redshift database which is present in another AWS account using IAM credential or Temporary credentials

Thanks,

Here is the blog to access cross account Redshift Databases from Quicksight.