-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(core): new tagging of existing AWS::EKS::AccessEntry resources is failing #29393
Description
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:
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:
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

