script to find out if the user granted assumrole privilege on database for unload/copy:
select has_assumerole_privilege('user@abc.com', 'arn:aws:iam::123456789:role/redshift-s3-unload-service-role', 'copy');
has_assumerole_privilege
------------------------
false
select has_assumerole_privilege('user@abc.com', 'arn:aws:iam::123456789:role/redshift-s3-unload-service-role', 'unload');
has_assumerole_privilege
------------------------
false
No comments:
Post a Comment