CmdID

CmdID / aws / aws iam

aws iam list-instance-profile-tags

Lists the tags that are attached to the specified IAM instance profile. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list the tags attached to an instance profile

The following list-instance-profile-tags example retrieves the list of tags associated with the specified instance profile.

aws iam list-instance-profile-tags --instance-profile-name deployment-roleIdentify
--instance-profile-nameThe name of the IAM instance profile whose tags you want to see.
Its output
{
    "Tags": [
        {
            "Key": "DeptID",
            "Value": "123456"
        },
        {
            "Key": "Department",
            "Value": "Accounting"
        }
    ]
}

For more information, see Tagging IAM resources in the AWS IAM User Guide.

Options

3 in the AWS CLI reference
--instance-profile-nameThe name of the IAM instance profile whose tags you want to see.
--markerUse this parameter only when paginating results and only after you receive a response indicating that the results are truncated.
--max-itemsUse this only when paginating results to indicate the maximum number of items you want in the response.