Skip to main content

linux_subscription_instances

Creates, updates, deletes, gets or lists a linux_subscription_instances resource.

Overview

Namelinux_subscription_instances
TypeResource
Idaws.license_manager_linux_subscriptions.linux_subscription_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe account ID which owns the instance.
ami_idstringThe AMI ID used to launch the instance.
dual_subscriptionstringIndicates that you have two different license subscriptions for the same software on your instance.
instance_idstringThe instance ID of the resource.
instance_typestringThe instance type of the resource.
last_updated_timestringThe time in which the last discovery updated the instance details.
os_versionstringThe operating system software version that runs on your instance.
product_codearrayThe product code for the instance. For more information, see Usage operation values in the License Manager User Guide .
regionstringThe Region the instance is running in.
registered_with_subscription_providerstringIndicates that your instance uses a BYOL license subscription from a third-party Linux subscription provider that you've registered with License Manager.
statusstringThe status of the instance.
subscription_namestringThe name of the license subscription that the instance uses.
subscription_provider_create_timestringThe timestamp when you registered the third-party Linux subscription provider for the subscription that the instance uses.
subscription_provider_update_timestringThe timestamp from the last time that the instance synced with the registered third-party Linux subscription provider.
usage_operationstringThe usage operation of the instance. For more information, see For more information, see Usage operation values in the License Manager User Guide.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_linux_subscription_instancesselectregionLists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.

SELECT
account_id,
ami_id,
dual_subscription,
instance_id,
instance_type,
last_updated_time,
os_version,
product_code,
region,
registered_with_subscription_provider,
status,
subscription_name,
subscription_provider_create_time,
subscription_provider_update_time,
usage_operation
FROM aws.license_manager_linux_subscriptions.linux_subscription_instances
WHERE region = '{{ region }}' -- required
;