Last active
August 16, 2021 06:24
-
-
Save kovid-r/dcd9e0d0200b6407a0baae1cfd654acb to your computer and use it in GitHub Desktop.
Check if the ARN is able to assume the role.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select has_assumerole_privilege('dwhadmin','arn of the dms-access-for-endpoint role','copy'); | |
select has_assumerole_privilege('dwhadmin','arn of the dms-access-for-endpoint role','unload'); | |
select pg_get_iam_role_by_user('dwhadmin'); | |
select pg_get_grantee_by_iam_role('arn of the dms-access-for-endpoint role'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment