HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/deploy/get-on-premises-instance.rst
**To get information about an on-premises instance**

The following ``get-on-premises-instance`` example retrieves information about the specified on-premises instance. ::

    aws deploy get-on-premises-instance --instance-name AssetTag12010298EX

Output::

    {
        "instanceInfo": {
        "iamUserArn": "arn:aws:iam::123456789012:user/AWS/CodeDeploy/AssetTag12010298EX",
            "tags": [
            {
                "Value": "CodeDeployDemo-OnPrem",
                "Key": "Name"
            }
            ],
            "instanceName": "AssetTag12010298EX",
            "registerTime": 1425579465.228,
            "instanceArn": "arn:aws:codedeploy:us-east-1:123456789012:instance/AssetTag12010298EX_4IwLNI2Alh"
        }
    }