Skip to main content

addons

Creates, updates, deletes or gets an addon resource or lists addons in a region

Overview

Nameaddons
TypeResource
DescriptionResource Schema for AWS::EKS::Addon
Idaws.eks.addons

Fields

NameDatatypeDescription
cluster_namestringName of Cluster
addon_namestringName of Addon
addon_versionstringVersion of Addon
preserve_on_deletebooleanPreserveOnDelete parameter value
resolve_conflictsstringResolve parameter value conflicts
service_account_role_arnstringIAM role to bind to the add-on's service account
pod_identity_associationsarrayAn array of pod identities to apply to this add-on.
configuration_valuesstringThe configuration values to use with the add-on
arnstringAmazon Resource Name (ARN) of the add-on
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTClusterName, AddonName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all addons in a region.

SELECT
region,
cluster_name,
addon_name,
addon_version,
preserve_on_delete,
resolve_conflicts,
service_account_role_arn,
pod_identity_associations,
configuration_values,
arn,
tags
FROM aws.eks.addons
WHERE region = 'us-east-1';

Gets all properties from an individual addon.

SELECT
region,
cluster_name,
addon_name,
addon_version,
preserve_on_delete,
resolve_conflicts,
service_account_role_arn,
pod_identity_associations,
configuration_values,
arn,
tags
FROM aws.eks.addons
WHERE region = 'us-east-1' AND data__Identifier = '<ClusterName>|<AddonName>';

INSERT example

Use the following StackQL query and manifest file to create a new addon resource, using stack-deploy.

/*+ create */
INSERT INTO aws.eks.addons (
ClusterName,
AddonName,
region
)
SELECT
'{{ ClusterName }}',
'{{ AddonName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.eks.addons
WHERE data__Identifier = '<ClusterName|AddonName>'
AND region = 'us-east-1';

Permissions

To operate on the addons resource, the following permissions are required:

Create

eks:CreateAddon,
eks:DescribeAddon,
eks:TagResource,
iam:PassRole,
iam:GetRole,
eks:CreatePodIdentityAssociation

Read

eks:DescribeAddon

Delete

eks:DeleteAddon,
eks:DescribeAddon,
eks:DeletePodIdentityAssociation

List

eks:ListAddons

Update

iam:PassRole,
iam:GetRole,
eks:UpdateAddon,
eks:DescribeAddon,
eks:DescribeUpdate,
eks:ListTagsForResource,
eks:TagResource,
eks:UntagResource,
eks:CreatePodIdentityAssociation,
eks:DeletePodIdentityAssociation