Skip to content

cluster_addons before_compute does not guarantee addons are created before compute resourcesΒ #3525

@vincentmrg

Description

@vincentmrg

Description

The cluster_addons feature in the module provides a before_compute attribute, which is described as a way to ensure that certain addons are created before compute resources (managed by module.eks_managed_node_group / module.self_managed_node_group).

In practice, however, this attribute does not guarantee that addons are created before compute resources. Instead, it only ensures that compute resources are created before addons with before_compute = false

module.eks_managed_node_group,

This behavior occurs because the modules responsible for creating compute resources currently do not have a depends_on referencing the addons with before_compute = true.

  • βœ‹ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version: 21.3.1

Expected behavior

Addons with before_compute = true should be applied before any compute resources.

The modules module.eks_managed_node_group and module.self_managed_node_group should include a depends_on on the aws_eks_addon.before_compute resources.

Terraform documentation on depends_on for modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions