You mean that you get this error when you rub the script? That’s bizarre – you should get it if you try to GET files from an S3 bucket that is not configured for website hosting, but not when you use PUT (which is the -T flag in my script).