將 EC2_URL 參數設定成東京機房的範例方式在 Unix/Unix-like 和 Windows 環境分別如下:
# Unix/Unix-like: export EC2_URL=https://ec2.ap-northeast-1.amazonaws.com # 東京 # Windows: set EC2_URL=https://ec2.ap-northeast-1.amazonaws.com # 東京
你可以使用「ec2-describe-regions」取得目前 AWS 最新各個 region 的清單與對應的 region name 與 EC2_URL 的值:(以下是於 2013/Mar 跑出來的清單)
REGION eu-west-1 ec2.eu-west-1.amazonaws.com REGION sa-east-1 ec2.sa-east-1.amazonaws.com REGION us-east-1 ec2.us-east-1.amazonaws.com REGION ap-northeast-1 ec2.ap-northeast-1.amazonaws.com REGION us-west-2 ec2.us-west-2.amazonaws.com REGION us-west-1 ec2.us-west-1.amazonaws.com REGION ap-southeast-1 ec2.ap-southeast-1.amazonaws.com REGION ap-southeast-2 ec2.ap-southeast-2.amazonaws.com
其它參考資料:
- 本文環境:AWS EC2 API Version 2013-02-01 + ec2-api-tools-1.6.6.4
- ec2-describe-volumes
- Using Amazon EC2 In Europe
0 Comments:
Post a Comment