linux_subscription_instances
Creates, updates, deletes, gets or lists a linux_subscription_instances resource.
Overview
| Name | linux_subscription_instances |
| Type | Resource |
| Id | aws.license_manager_linux_subscriptions.linux_subscription_instances |
Fields
The following fields are returned by SELECT queries:
- list_linux_subscription_instances
| Name | Datatype | Description |
|---|---|---|
account_id | string | The account ID which owns the instance. |
ami_id | string | The AMI ID used to launch the instance. |
dual_subscription | string | Indicates that you have two different license subscriptions for the same software on your instance. |
instance_id | string | The instance ID of the resource. |
instance_type | string | The instance type of the resource. |
last_updated_time | string | The time in which the last discovery updated the instance details. |
os_version | string | The operating system software version that runs on your instance. |
product_code | array | The product code for the instance. For more information, see Usage operation values in the License Manager User Guide . |
region | string | The Region the instance is running in. |
registered_with_subscription_provider | string | Indicates that your instance uses a BYOL license subscription from a third-party Linux subscription provider that you've registered with License Manager. |
status | string | The status of the instance. |
subscription_name | string | The name of the license subscription that the instance uses. |
subscription_provider_create_time | string | The timestamp when you registered the third-party Linux subscription provider for the subscription that the instance uses. |
subscription_provider_update_time | string | The timestamp from the last time that the instance synced with the registered third-party Linux subscription provider. |
usage_operation | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_linux_subscription_instances | select | region | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_linux_subscription_instances
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
;