How to pass in parameters for Step Functions EC2 Service API DescribeTags?

0

I am learning Step Functions and I want to get a list of EC2 instances that matches my filter. I am not able to use the parameters described here: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html

I have tried using using Filter as an array and as numbered like Filter.1 (see screenshots)

I am able to run the step function with empty parameters.

Enter image description here Enter image description here Enter image description here

tam-le
asked a year ago267 views
1 Answer
0
Accepted Answer

Looking at the Boto3 documentation [1] for this method, it looks like you need to provide the Filters parameter like this:

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

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

Ed
answered a year 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