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
Idawscc.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
namespace_configobjectThe custom namespace configuration to use with the add-on
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::EKS::Addon.

Methods

NameResourceAccessible byRequired Params
create_resourceaddonsINSERTClusterName, AddonName, region
delete_resourceaddonsDELETEIdentifier, region
update_resourceaddonsUPDATEIdentifier, PatchDocument, region
list_resourcesaddons_list_onlySELECTregion
get_resourceaddonsSELECTIdentifier, region

SELECT examples

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,
namespace_config,
tags
FROM awscc.eks.addons
WHERE
region = 'us-east-1' AND
Identifier = '{{ cluster_name }}|{{ addon_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.eks.addons
SET PatchDocument = string('{{ {
"AddonVersion": addon_version,
"PreserveOnDelete": preserve_on_delete,
"ResolveConflicts": resolve_conflicts,
"ServiceAccountRoleArn": service_account_role_arn,
"PodIdentityAssociations": pod_identity_associations,
"ConfigurationValues": configuration_values,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ cluster_name }}|{{ addon_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.eks.addons
WHERE
Identifier = '{{ cluster_name }}|{{ addon_name }}' AND
region = 'us-east-1';

Permissions

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

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