EC2 实例中的 Amazon SQS 区域

发布于 2024-09-16 05:27:19 字数 455 浏览 3 评论 0原文

如果我从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

壹場煙雨 2024-09-23 05:27:19

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文