Skip to main content

eks_anywhere_subscriptions

Creates, updates, deletes, gets or lists an eks_anywhere_subscriptions resource.

Overview

Nameeks_anywhere_subscriptions
TypeResource
Idaws.eks.eks_anywhere_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUUID identifying a subscription.
arnstringThe Amazon Resource Name (ARN) for the subscription.
auto_renewbooleanA boolean indicating whether or not a subscription will auto renew when it expires.
created_atstring (date-time)The Unix timestamp in seconds for when the subscription was created.
effective_datestring (date-time)The Unix timestamp in seconds for when the subscription is effective.
expiration_datestring (date-time)The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew configuration of the subscription object.
license_arnsarrayAmazon Web Services License Manager ARN associated with the subscription.
license_quantityintegerThe number of licenses included in a subscription. Valid values are between 1 and 100.
license_typestringThe type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster. (Cluster)
licensesarrayIncludes all of the claims in the license token necessary to validate the license for extended support.
statusstringThe status of a subscription.
tagsobjectThe metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags do not propagate to any other resources associated with the subscription.
termobjectAn object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_eks_anywhere_subscriptionselectid, regionReturns descriptive information about a subscription.
list_eks_anywhere_subscriptionsselectregionmaxResults, nextToken, includeStatusDisplays the full description of the subscription.
create_eks_anywhere_subscriptioninsertregion, name, termCreates an EKS Anywhere subscription. When a subscription is created, it is a contract agreement for the length of the term specified in the request. Licenses that are used to validate support are provisioned in Amazon Web Services License Manager and the caller account is granted access to EKS Anywhere Curated Packages.
update_eks_anywhere_subscriptionupdateid, region, autoRenewUpdate an EKS Anywhere Subscription. Only auto renewal and tags can be updated after subscription creation.
delete_eks_anywhere_subscriptiondeleteid, regionDeletes an expired or inactive subscription. Deleting inactive subscriptions removes them from the Amazon Web Services Management Console view and from list/describe API responses. Subscriptions can only be cancelled within 7 days of creation and are cancelled by creating a ticket in the Amazon Web Services Support Center.

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
idstringThe ID of the subscription.
regionstringAWS region (default: us-east-1)
includeStatusarrayAn array of subscription statuses to filter on.
maxResultsintegerThe maximum number of cluster results returned by ListEksAnywhereSubscriptions in paginated output. When you use this parameter, ListEksAnywhereSubscriptions returns only maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListEksAnywhereSubscriptions request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, ListEksAnywhereSubscriptions returns up to 10 results and a nextToken value if applicable.
nextTokenstringThe nextToken value returned from a previous paginated ListEksAnywhereSubscriptions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

SELECT examples

Returns descriptive information about a subscription.

SELECT
id,
arn,
auto_renew,
created_at,
effective_date,
expiration_date,
license_arns,
license_quantity,
license_type,
licenses,
status,
tags,
term
FROM aws.eks.eks_anywhere_subscriptions
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an EKS Anywhere subscription. When a subscription is created, it is a contract agreement for the length of the term specified in the request. Licenses that are used to validate support are provisioned in Amazon Web Services License Manager and the caller account is granted access to EKS Anywhere Curated Packages.

INSERT INTO aws.eks.eks_anywhere_subscriptions (
name,
term,
licenseQuantity,
licenseType,
autoRenew,
clientRequestToken,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ term }}' /* required */,
{{ licenseQuantity }},
'{{ licenseType }}',
{{ autoRenew }},
'{{ clientRequestToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
subscription
;

UPDATE examples

Update an EKS Anywhere Subscription. Only auto renewal and tags can be updated after subscription creation.

UPDATE aws.eks.eks_anywhere_subscriptions
SET
autoRenew = {{ autoRenew }},
clientRequestToken = '{{ clientRequestToken }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND autoRenew = {{ autoRenew }} --required
RETURNING
subscription;

DELETE examples

Deletes an expired or inactive subscription. Deleting inactive subscriptions removes them from the Amazon Web Services Management Console view and from list/describe API responses. Subscriptions can only be cancelled within 7 days of creation and are cancelled by creating a ticket in the Amazon Web Services Support Center.

DELETE FROM aws.eks.eks_anywhere_subscriptions
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;