aws.ssm.describe_instance_information
Example SQL Queries
SELECT * FROMaws.ssm.describe_instance_information;Description
Provides information about one or more of your managed nodes, including the operating system platform, SSM Agent version, association status, and IP address. This operation does not return information for nodes that are either Stopped or Terminated.
If you specify one or more node IDs, the operation returns information for those managed nodes. If you don't specify node IDs, it returns information for all your managed nodes. If you specify a node ID that isn't valid or a node that you don't own, you receive an error.
The IamRole field returned for this API operation is the role assigned to an Amazon EC2 instance configured with a Systems Manager Quick Setup host management configuration or the role assigned to an on-premises managed node.
Table Definition
| Column Name | Column Data Type |
|---|---|
| filters Input Column One or more filters. Use a filter to return a more specific list of managed nodes. You can filter based on tags applied to your managed nodes. Tag filters can't be combined with other filter types. Use this Filters data type instead of InstanceInformationFilterList, which is deprecated. | STRUCT( |
Show child fields
| |
| instance_information_filter_list Input Column This is a legacy method. We recommend that you don't use this method. Instead, use the Filters data type. Filters enables you to return node information by filtering based on tags applied to managed nodes. Attempting to use InstanceInformationFilterList and Filters leads to an exception error. | STRUCT( |
Show child fields
| |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| activation_id The activation ID created by Amazon Web Services Systems Manager when the server or virtual machine (VM) was registered. | VARCHAR |
| agent_version The version of SSM Agent running on your Linux managed node. | VARCHAR |
| association_overview Information about the association. | STRUCT( |
Show child fields
| |
| association_status The status of the association. | VARCHAR |
| computer_name The fully qualified host name of the managed node. | VARCHAR |
| iam_role The role assigned to an Amazon EC2 instance configured with a Systems Manager Quick Setup host management configuration or the role assigned to an on-premises managed node. This call doesn't return the IAM role for unmanaged Amazon EC2 instances (instances not configured for Systems Manager). To retrieve the role for an unmanaged instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference. | VARCHAR |
| instance_id The managed node ID. | VARCHAR |
| ip_address The IP address of the managed node. | VARCHAR |
| is_latest_version Indicates whether the latest version of SSM Agent is running on your Linux managed node. This field doesn't indicate whether or not the latest version is installed on Windows managed nodes, because some older versions of Windows Server use the EC2Config service to process Systems Manager requests. | BOOLEAN |
| last_association_execution_date The date the association was last run. | TIMESTAMP_S |
| last_ping_date_time The date and time when the agent last pinged the Systems Manager service. | TIMESTAMP_S |
| last_successful_association_execution_date The last date the association was successfully run. | TIMESTAMP_S |
| name The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference. | VARCHAR |
| ping_status Connection status of SSM Agent. The status Inactive has been deprecated and is no longer in use. | VARCHAR |
| platform_name The name of the operating system platform running on your managed node. | VARCHAR |
| platform_type The operating system platform type. | VARCHAR |
| platform_version The version of the OS platform running on your managed node. | VARCHAR |
| registration_date The date the server or VM was registered with Amazon Web Services as a managed node. | TIMESTAMP_S |
| resource_type The type of instance. Instances are either EC2 instances or managed instances. | VARCHAR |
| source_id The ID of the source resource. For IoT Greengrass devices, SourceId is the Thing name. | VARCHAR |
| source_type The type of the source resource. For IoT Greengrass devices, SourceType is AWS::IoT::Thing. | VARCHAR |