#!/usr/bin/env python3
import boto3
ec2 = boto3.client('ec2', region_name='ap-southeast-1')
instances = ec2.describe_instances()
for instance in instances:
print(instance['InstanceId'])
aws ec2 instance python(boto3)脚本读取实例信息
最新推荐文章于 2021-10-21 15:19:27 发布