Skip to main content

linux_subscriptions

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

Overview

Namelinux_subscriptions
TypeResource
Idaws.license_manager_linux_subscriptions.linux_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
instance_countinteger (int64)The total amount of running instances using this subscription.
namestringThe name of the subscription.
typestringThe type of subscription. The type can be subscription-included with Amazon EC2, Bring Your Own Subscription model (BYOS), or from the Amazon Web Services Marketplace. Certain subscriptions may use licensing from the Amazon Web Services Marketplace as well as OS licensing from Amazon EC2 or BYOS.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_linux_subscriptionsselectregionLists the Linux subscriptions that have been discovered. If you have linked your organization, the returned results will include data aggregated across your accounts in Organizations.

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 Linux subscriptions that have been discovered. If you have linked your organization, the returned results will include data aggregated across your accounts in Organizations.

SELECT
instance_count,
name,
type
FROM aws.license_manager_linux_subscriptions.linux_subscriptions
WHERE region = '{{ region }}' -- required
;