Is it possible to put a redirect header on a s3-object? Like a 301 redirect.
For example:
mybucket.amazon-aws.com/myobject --> example.com/test
>
AWSCLI lets you do this easily now (sort of)
https://.s3-website-.amazonaws.com Use the s3api call to set the redirect
aws s3api put-object --acl public-read --website-redirect-location "http://other-location.com" --bucket foo-bucket --key somewhere/blah
Note: You don't post any object to S3, because it will only serve a 301 and redirect Location header.
Test with
curl -v 2 -L https://