Skip to content

Conversation

@guessi
Copy link
Contributor

@guessi guessi commented Nov 10, 2025

Description

  • Add support for DeletionProtection attribute passing.

  • Make it possible to update DeletionProtection setup with eksctl utils deletion-protection command.

    • Cluster creation
    % ./eksctl create cluster -f ./examples/46-deletion-protection-example.yaml
    2025-11-10 13:04:42 [ℹ]  eksctl version 0.217.0-dev+9cbe52f2b.2025-11-10T12:59:29Z
    ...
    2025-11-10 13:04:43 [ℹ]  creating EKS cluster "deletion-protection-cluster" in "us-west-2" region with managed nodes
    ...
    2025-11-10 13:18:39 [✔]  EKS cluster "deletion-protection-cluster" in "us-west-2" region is ready
    • CloudTrail
    {
        ...
        "eventTime": "2025-11-10T05:05:12Z",
        "eventSource": "eks.amazonaws.com",
        "eventName": "CreateCluster",
        "awsRegion": "us-west-2",
        "sourceIPAddress": "cloudformation.amazonaws.com",
        "userAgent": "cloudformation.amazonaws.com",
        "requestParameters": {
            "name": "deletion-protection-cluster",
            ...
            "deletionProtection": true
        },
        ...
    }
    • Enabling
    $ ./eksctl utils deletion-protection --name deletion-protection-cluster --enabled=true --approve
    2025-11-10 12:58:56 [ℹ]  enabling deletion protection for cluster "deletion-protection-cluster"
    • Disabling
    $ ./eksctl utils deletion-protection --name deletion-protection-cluster --enabled=false --approve
    2025-11-10 12:59:13 [ℹ]  disabling deletion protection for cluster "deletion-protection-cluster"
    • With no --approve passing
    $ ./eksctl utils deletion-protection --name deletion-protection-cluster --enabled=true
    2025-11-10 12:58:23 [✖]  --dry-run is not supported for this command
    • Cluster deletion
    $ ./eksctl delete cluster -f ./examples/46-deletion-protection-example.yaml
    2025-11-10 13:21:02 [ℹ]  deleting EKS cluster "deletion-protection-cluster"
    ...
    2025-11-10 13:28:35 [ℹ]  will delete stack "eksctl-deletion-protection-cluster-cluster"
    2025-11-10 13:28:36 [✔]  all cluster resources were deleted

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

@guessi guessi force-pushed the feature/delete-protection-support branch from fbd5e3d to 9cbe52f Compare November 10, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant