Skip to content

(core): new tagging of existing AWS::EKS::AccessEntry resources is failing #29393

@diranged

Description

@diranged

Describe the bug

Upgrading from 2.130.0 -> 2.131.0 includes #28989 - and while this might work for newly created resources, it fails on upgrades of existing resources. The error returned by the AWS CF API is:

 Resource handler returned message: "This operation can only be performed on Access Entries with a type of "STANDARD". (Service: Eks, Status Code: 400, Request ID: 04b5dbe3-6ed0-4cb6-a3c7-a2c69c3e52e9)"

Expected Behavior

Certain types of AWS::EKS::AccessEntries apparently cannot be updated in-place, so we can't just add Tags to a resources like this without versioning and replacing the resource.

Current Behavior

The current behavior is to add the tags to all the existing AWS::EKS::AccessEntry resources. We saw this change come through in our PRs from a Dependabot upgrade:

image

We ran the change through the integration tests (which launch all new resources) and they worked fine ... but when we merged the change to existing environments, the deploy failed:

image

This resource cannot be updated in-place when the type is EC2_LINUX.

Reproduction Steps

Create resource with old version .. upgrade... try deploy.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.131.0

Framework Version

No response

Node.js Version

18

OS

Linux

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eksRelated to Amazon Elastic Kubernetes ServiceblockedWork is blocked on this issue for this codebase. Other labels or comments may indicate why.bugThis issue is a bug.effort/mediumMedium work item – several days of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions