📜  aws s3 更改存储桶区域 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:51.459000             🧑  作者: Mango

代码示例1
-- Create tmp
$ aws s3 sync s3://bucket1 s3://tmp --source-region us-west-1 --region us-west-2
$ aws s3 rb s3://bucket1 --force
-- Recreate bucket1 in us-west-2, but you might have to wait due to caching
$ aws s3 sync s3://tmp s3://bucket1 --source-region us-west-2 --region us-west-2