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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.eks.addons
WHERE
Identifier = '{{ cluster_name }}|{{ addon_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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