Amazon在S3管理控制台中具有“编辑重定向规则”:
但我想自动化并通过命令行更新它,这是我找不到的.即使在亚马逊的documentation page上,它也显示了S3界面的截图,并且没有提及任何Web API.
最佳答案 各种AWS开发工具包调用此putBucketWebsite:
> CLI:http://docs.aws.amazon.com/cli/latest/reference/s3api/put-bucket-website.html
> JavaScript:http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putBucketWebsite-property
> PHP:http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.S3.S3Client.html#_putBucketWebsite