CmdID

CmdID / aws / aws proton

aws proton list-service-instances

List service instances with summary data. AWS CLI reference

1 example 6 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 all service instances

The following list-service-instances example lists service instances.

aws proton list-service-instancesIdentify
Its output
{
    "serviceInstances": [
        {
            "arn": "arn:aws:proton:region-id:123456789012:service/simple-svc/service-instance/instance-one",
            "createdAt": "2020-11-28T22:40:50.512000+00:00",
            "deploymentStatus": "SUCCEEDED",
            "environmentName": "simple-env",
            "lastDeploymentAttemptedAt": "2020-11-28T22:40:50.512000+00:00",
            "lastDeploymentSucceededAt": "2020-11-28T22:40:50.512000+00:00",
            "name": "instance-one",
            "serviceName": "simple-svc",
            "templateMajorVersion": "1",
            "templateMinorVersion": "0",
            "templateName": "fargate-service"
        }
    ]
}

For more information, see View service instance data in the The AWS Proton Administrator Guide or View service instance data in the The AWS Proton User Guide.

Options

6 in the AWS CLI reference
--filtersAn array of filtering criteria that scope down the result list.
--max-resultsThe maximum number of service instances to list.
--next-tokenA token that indicates the location of the next service in the array of service instances, after the list of service instances that was previously requested.
--service-nameThe name of the service that the service instance belongs to.
--sort-byThe field that the result list is sorted by.
--sort-orderResult list sort order.