Skip to content

EKS Addon Create Failing - "Addon Already Exists" #6

@t-margheim

Description

@t-margheim

Summary

During the kubernetes step, Pulumi attempts to create an EKS Addon that already exists in AWS, resulting in a ResourceInUseException. The Pulumi state appears out of sync with the actual AWS resources, and running --refresh does not detect the existing addon.

Context

  • Step: kubernetes
  • Resource: aws:eks/addon:Addon (aws-ebs-csi-driver)
  • Error: ResourceInUseException: Addon already exists

Error Details

error: creating EKS Add-On (example-workload-20251029:aws-ebs-csi-driver):
operation error EKS: CreateAddon, https response error StatusCode: 409,
RequestID: e45a1a2b-22bb-4c71-a7c0-12b230741f1f,
ResourceInUseException: Addon already exists.

Resource Configuration

URN: urn:pulumi:example-workload::ptd-aws-workload-eks::ptd:AWSWorkloadEKS$ptd:AWSEKSCluster$aws:eks/cluster:Cluster$aws:eks/addon:Addon::example-workload-20251029-ebs-csi
Addon Name: aws-ebs-csi-driver
Addon Version: v1.41.0-eksbuild.1
Cluster Name: example-workload-20251029

Problem

  1. The EKS addon exists in AWS but is not tracked in Pulumi state
  2. pulumi refresh does not detect the existing addon
  3. Pulumi attempts to create the addon, which fails because it already exists
  4. The state is out of sync with reality

Related Discussion

Discussed in an internal Slack conversation.

Next Steps

Determine the best path forward based on:

  • Whether this is a one-time migration issue or will recur
  • Impact of deleting and recreating the addon
  • Whether other addons are affected

Metadata

Metadata

Assignees

No one assigned

    Labels

    awsAWS-related

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions