如何使用Boto3脚本使用标记和值过滤AWS实例,请建议!
import boto3
ec2 = boto3.resource('ec2')
client = boto3.client('ec2')
response = client.describe_tags(
Filters=[{'Key': 'Owner', 'Value': 'user@example.com'}])
print(response)
Run Code Online (Sandbox Code Playgroud)
谢谢,NTRao