...
Add an Amazon EC2 Instance task and select the Stop Instance(s) action.
Select the desired AWS region and AWS security credentials as usual.
Click on the Examples button and select the Tag (key only) example filter declaration.
Replace the "Environment" sample filter value for the filter "tag-key" with "Name" so that the resulting filter declaration looks as follows:
Code Block language js [ { "Name": "tag-key", "Values": ["Name"] } ]
Alternatively
Alternatively, you can select the Tag (key and value) example filter declaration with a filter "tag:Name" and a wildcard value "*" as follows:
Code Block language js [ { "Name": "tag:Name", "Values": ["*"] } ]
Save the task.
Due to "Name" being a default tag available for every resource, when you run the task, it will target all EC2 instances in this region, no matter what their actual name is.
...