Skip to main content

EC2 Describe Tags

Describes the specified tags for your EC2 resources.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

External Documentation

To learn more, visit the AWS documentation.

Basic Parameters

ParameterDescription
AWS Region(s)Enter the desired AWS Region(s).To execute the action in multiple regions, provide a comma-separated list.For example: us-east-1,eu-west-2.If you wish to run the action in all available regions, use the asterisk symbol (*) instead.

Advanced Parameters

ParameterDescription
Disable XML To JSON Auto ConvertWhen checked, XML responses are not automatically converted into JSON format.
Dry RunChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FiltersThe filters.
  • key - The tag key.
  • resource-id - The ID of the resource.
  • resource-type - The resource type ( customer-gateway | dedicated-host | dhcp-options | elastic-ip | fleet | fpga-image | host-reservation | image | instance | internet-gateway | key-pair | launch-template | natgateway | network-acl | network-interface | placement-group | reserved-instances | route-table | security-group | snapshot | spot-instances-request | subnet | volume | vpc | vpc-endpoint | vpc-endpoint-service | vpc-peering-connection | vpn-connection | vpn-gateway).
  • tag:<key> - The key/value combination of the tag. For example, specify "tag:Owner" for the filter name and "TeamA" for the filter value to find resources with the tag "Owner=TeamA".
  • value - The tag value.
Max ResultsThe maximum number of results to return in a single call. This value can be between 5 and 1000. To retrieve the remaining results, make another call with the returned NextToken value.
Next TokenThe token to retrieve the next page of results.

Example Output

{
"Tags": [
{
"Key": "Stack",
"ResourceId": "i-1234567890abcdef8",
"ResourceType": "instance",
"Value": "test"
},
{
"Key": "Name",
"ResourceId": "i-1234567890abcdef8",
"ResourceType": "instance",
"Value": "Beta Server"
}
]
}

Workflow Library Example

Ec2 Describe Tags with Aws and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop