Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用“ bellatrix ”自动创建 AWS EC2 实例。一个问题是使用此工具设置 AWS 区域(例如 us-west-2)。该工具的文档页面中没有关于区域的描述。
任何想法?
快速解决。从ec2_lib.pybellatrix的源代码中,进行如下更改:
ec2_lib.py
import boto.ec2 def getEC2Connection(self): # Use your region as 1st argument return boto.ec2.connect_to_region("us-west-2", aws_access_key_id=self._key, aws_secret_access_key=self._sec)