EC2 实例中的 Amazon SQS 区域
如果我从 EC2 实例创建 SQS 队列,而未在 API 调用中指定区域,则将在哪个区域中创建队列。
当我运行
boto.sqs.regions()
时,我从非 ec2 机器获取 4 个区域,我得到
[RegionInfo:us-east-1, RegionInfo:eu-west-1, RegionInfo :us-west-1, RegionInfo:ap-southeast-1]
从亚太地区的一台 EC2 机器上我得到
[RegionInfo:us-east-1, RegionInfo:eu-west-1, RegionInfo:us-west-1]
Amazon是否根据EC2实例区域设置SQS的区域。有没有办法访问其他地区的队列?
我正在使用 python Boto 库。
If I create SQS queue from an EC2 instance without specifying the region in the API call, in which region will the queue be created.
When I run
boto.sqs.regions()
I get 4 regions from an NON ec2 machine, I get
[RegionInfo:us-east-1, RegionInfo:eu-west-1, RegionInfo:us-west-1, RegionInfo:ap-southeast-1]
from a EC2 machine in the Asia Pacific Region I get
[RegionInfo:us-east-1, RegionInfo:eu-west-1, RegionInfo:us-west-1]
Does Amazon set region of SQS based on the EC2 instance region. Is there a way to access other region Queues?
I am using the python Boto library.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 boto 库中,您必须指定要连接到的区域,否则默认为美国东部区域。旧版本的boto python库(1.9)没有东南亚地区,因此出现上述问题。
In the boto library, you have to specify which region to connect to or else it defaults to US-EAST region. The old version of boto python library (1.9) did not have the Southeast Asia region and hence the above problem.