Skip to content

Instantly share code, notes, and snippets.

@kovid-r
Last active August 16, 2021 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kovid-r/dcd9e0d0200b6407a0baae1cfd654acb to your computer and use it in GitHub Desktop.
Save kovid-r/dcd9e0d0200b6407a0baae1cfd654acb to your computer and use it in GitHub Desktop.
Check if the ARN is able to assume the role.
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