postgresql - AWS Unload Error: 'The bucket you are attempting to access must be addressed using the specified endpoint.' -
i running following query in sql. trying unload data redshift bucket in personal s3 account:
unload ('select * table upper(description) \'%something%\') 's3://mybucketname/sometextname.txt' credentials 'aws_access_key_id=xxx;aws_secret_access_key=xxx' parallel off
when this, following error:
the bucket attempting access must addressed using specified endpoint. please send future requests endpoint.,status 301,error permanentredirect,rid ae9f82cd626a5b05,extrid 1hl5hhhv9rkaq0vw7fb0kpm2wo1uomy4mmxq
is s3 path correct? need change permissions s3 account or bucket?
it looks redshift cluster , s3 bucket in different regions. , of now, redshift doesn't support unloading in different region. documentation:
the amazon s3 bucket amazon redshift write output files must reside in same region cluster.
Comments
Post a Comment