Skip to main content

addons

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

Overview

Nameaddons
TypeResource
Idaws.eks.addons

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
addon_arnstringThe Amazon Resource Name (ARN) of the add-on.
addon_namestringThe name of the add-on.
addon_versionstringThe version of the add-on.
cluster_namestringThe name of your cluster. (pattern: <code>^[0-9A-Za-z][A-Za-z0-9-_]*</code>)
configuration_valuesstringThe configuration values that you provided.
created_atstring (date-time)The Unix epoch timestamp at object creation.
healthobjectAn object that represents the health of the add-on.
marketplace_informationobjectInformation about an Amazon EKS add-on from the Amazon Web Services Marketplace.
modified_atstring (date-time)The Unix epoch timestamp for the last modification to the object.
namespace_configobjectThe namespace configuration for the addon. This specifies the Kubernetes namespace where the addon is installed.
ownerstringThe owner of the add-on.
pod_identity_associationsarrayAn array of EKS Pod Identity associations owned by the add-on. Each association maps a role to a service account in a namespace in the cluster. For more information, see Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity in the Amazon EKS User Guide.
publisherstringThe publisher of the add-on.
service_account_role_arnstringThe Amazon Resource Name (ARN) of the IAM role that's bound to the Kubernetes ServiceAccount object that the add-on uses.
statusstringThe status of the add-on. (CREATING, ACTIVE, CREATE_FAILED, UPDATING, DELETING, DELETE_FAILED, DEGRADED, UPDATE_FAILED)
tagsobjectMetadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_addonselectname, addon_name, regionDescribes an Amazon EKS add-on.
list_addonsselectname, regionmaxResults, nextTokenLists the installed add-ons.
create_addoninsertname, region, addonNameCreates an Amazon EKS add-on. Amazon EKS add-ons help to automate the provisioning and lifecycle management of common operational software for Amazon EKS clusters. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.
update_addonupdatename, addon_name, regionUpdates an Amazon EKS add-on.
delete_addondeletename, addon_name, regionpreserveDeletes an Amazon EKS add-on. When you remove an add-on, it's deleted from the cluster. You can always manually start an add-on on the cluster using the Kubernetes API.

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
addon_namestringThe name of the add-on. The name must match one of the names returned by ListAddons .
namestringThe name of your cluster.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results, returned in paginated output. You receive maxResults in a single page, along with a nextToken response element. You can see the remaining results of the initial request by sending another request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, 100 results and a nextToken value, if applicable, are returned.
nextTokenstringThe nextToken value returned from a previous paginated 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. This value is null when there are no more results to return. This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.
preservebooleanSpecifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on. If an IAM account is associated with the add-on, it isn't removed.

SELECT examples

Describes an Amazon EKS add-on.

SELECT
addon_arn,
addon_name,
addon_version,
cluster_name,
configuration_values,
created_at,
health,
marketplace_information,
modified_at,
namespace_config,
owner,
pod_identity_associations,
publisher,
service_account_role_arn,
status,
tags
FROM aws.eks.addons
WHERE name = '{{ name }}' -- required
AND addon_name = '{{ addon_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon EKS add-on. Amazon EKS add-ons help to automate the provisioning and lifecycle management of common operational software for Amazon EKS clusters. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.

INSERT INTO aws.eks.addons (
addonName,
addonVersion,
serviceAccountRoleArn,
resolveConflicts,
clientRequestToken,
tags,
configurationValues,
podIdentityAssociations,
namespaceConfig,
name,
region
)
SELECT
'{{ addonName }}' /* required */,
'{{ addonVersion }}',
'{{ serviceAccountRoleArn }}',
'{{ resolveConflicts }}',
'{{ clientRequestToken }}',
'{{ tags }}',
'{{ configurationValues }}',
'{{ podIdentityAssociations }}',
'{{ namespaceConfig }}',
'{{ name }}',
'{{ region }}'
RETURNING
addon
;

UPDATE examples

Updates an Amazon EKS add-on.

UPDATE aws.eks.addons
SET
addonVersion = '{{ addonVersion }}',
serviceAccountRoleArn = '{{ serviceAccountRoleArn }}',
resolveConflicts = '{{ resolveConflicts }}',
clientRequestToken = '{{ clientRequestToken }}',
configurationValues = '{{ configurationValues }}',
podIdentityAssociations = '{{ podIdentityAssociations }}'
WHERE
name = '{{ name }}' --required
AND addon_name = '{{ addon_name }}' --required
AND region = '{{ region }}' --required
RETURNING
update;

DELETE examples

Deletes an Amazon EKS add-on. When you remove an add-on, it's deleted from the cluster. You can always manually start an add-on on the cluster using the Kubernetes API.

DELETE FROM aws.eks.addons
WHERE name = '{{ name }}' --required
AND addon_name = '{{ addon_name }}' --required
AND region = '{{ region }}' --required
AND preserve = '{{ preserve }}'
;