【发布时间】:2019-06-07 17:01:19
【问题描述】:
我正在使用下面的代码来启动 EC2 实例
import boto3
client = boto3.client('ec2',region_name='us-east-1')
resp = client.run_instances(ImageId='ami-01e3b8c3a51e88954',
InstanceType='t2.micro',
MinCount=1,MaxCount=1)
for instance in resp['Instances']:
print(instance['InstanceId'])
此代码正在运行。但我现在的要求是一次在多个区域启动实例。 谁能建议如何实现这一目标?
【问题讨论】:
标签: amazon-web-services amazon-ec2 boto3