如何为Step Functions EC2服务API描述标签传递参数?

0

【以下的问题经过翻译处理】 我正在学习Step Functions,并想要获取与我的筛选条件匹配的EC2实例列表。但我无法使用此处描述的参数:https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html

我尝试将Filter作为数组以及按数字编号的方式使用,如Filter.1(见截图)。

我能够使用空参数运行步骤函数。

图片描述 图片描述 图片描述

profile picture
EXPERT
asked 5 months ago38 views
1 Answer
0

【以下的回答经过翻译处理】 查看Boto3文档[1]中的此方法,似乎需要像这样提供“Filters”参数:

“Filters”:[
{
“Name”:“tag:Group”,
“Values”:[
“Production”
]
}
]

[1] https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.describe_tags

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions