So I am unloading from Redshift using Unload operator
Unload
UNLOAD( $$ select DISTINCT A,B,C from Table $$) TO \'s3://{}\' IAM_RO