Skip to content

Latest commit

 

History

History

eks-addon

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

eks-addon

This module creates following resources.

  • aws_eks_addon

Requirements

Name Version
terraform >= 1.6
aws >= 5.42

Providers

Name Version
aws 5.50.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_eks_addon.this resource
aws_eks_addon_version.default data source
aws_eks_addon_version.latest data source
aws_eks_cluster.this data source

Inputs

Name Description Type Default Required
cluster_name (Required) The name of the Amazon EKS cluster to add the EKS add-on to. string n/a yes
name (Required) The name of the EKS add-on. string n/a yes
addon_version (Optional) The version of the add-on. If not provided, this is configured with default compatibile version for the respective EKS cluster version. string null no
configuration (Optional) The set of configuration values for the add-on. This JSON string value must match the JSON schema derived from describe-addon-configuration. string null no
conflict_resolution_strategy_on_create (Optional) How to resolve field value conflicts when migrating a self-managed add-on to an EKS add-on. Valid values are NONE and OVERWRITE. Defaults to OVERWRITE.
NONE - If the self-managed version of the add-on is installed on the cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.
OVERWRITE - If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.
string "OVERWRITE" no
conflict_resolution_strategy_on_update (Optional) How to resolve field value conflicts for an EKS add-on if you've changed a value from the EKS default value. Valid values are NONE, OVERWRITE and PRESERVE. Defaults to OVERWRITE.
NONE - Amazon EKS doesn't change the value. The update might fail.
OVERWRITE - Amazon EKS overwrites the changed value back to the Amazon EKS default value.
PRESERVE - Amazon EKS preserves the value. If you choose this option, we recommend that you test any field and value changes on a non-production cluster before updating the add-on on the production cluster.
string "OVERWRITE" no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
preserve_on_delete (Optional) Whether to preserve the created Kubernetes resources on the cluster when deleting the EKS add-on. Defaults to false. bool false no
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
resource_group_name (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. string "" no
service_account_role (Optional) The ARN (Amazon Resource Name) of the IAM Role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. string null no
tags (Optional) A map of tags to add to all resources. map(string) {} no
timeouts (Optional) How long to wait for the EKS Fargate Profile to be created/updated/deleted.
object({
create = optional(string, "20m")
update = optional(string, "20m")
delete = optional(string, "40m")
})
{} no

Outputs

Name Description
arn The ARN of the EKS add-on.
cluster_name The name of the EKS cluster.
conflict_resolution_strategy_on_create How to resolve field value conflicts when migrating a self-managed add-on to an EKS add-on.
conflict_resolution_strategy_on_update How to resolve field value conflicts for an EKS add-on if you've changed a value from the EKS default value.
created_at Date and time in RFC3339 format that the EKS add-on was created.
default_version The default version of the EKS add-on compatible with the EKS cluster version.
id The ID of the EKS add-on.
is_latest Whether the EKS add-on version is the latest available.
latest_version The latest version of the EKS add-on compatible with the EKS cluster version.
name The name of the EKS add-on.
service_account_role The ARN (Amazon Resource Name) of the IAM Role to bind to the add-on's service account
updated_at Date and time in RFC3339 format that the EKS add-on was updated.
version The version of the EKS add-on.