Issue:
when I tried to unload some data from Redshift to S3 bucket using the Redshift SSO user got the below error.
SQL Error [XX000]: ERROR: User user@abc.com does not have ASSUMEROLE permission on IAM role "arn:aws:iam::123456789:role/Redshift-s3-unload-role" for UNLOAD
Solution:
after some investigation found that ,we should grant the assumrole privilege's to the user ,after granting the privilege issue resolved.
Syntax: ==>Unload
grant assumerole on 'arn:aws:iam::123456789:role/Redshift-s3-unload-role' to "user@abc.com" for unload;
Syntax: ==>copy
grant assumerole on 'arn:aws:iam::123456789:role/Redshift-s3-unload-role' to "user@abc.com" for copy;
No comments:
Post a Comment