Closed deepak-sreekumar closed 1 year ago
Thanks for the reproduction steps, @deepak-sreekumar. It allowed to reproduce the issue. Given that all the CDK does in this case is to set the tags when deploying the stack to CloudFormation, this seems like an issue with either CloudFormation or the Elasticache control plane API.
@peterwoodworth, can we follow up internally with these teams?
Tracking: V432305685
The internal CFN team has been able to reproduce this issue. They're tracking it internally to be fixed here: V436237202
Would it be possible to get an update on this issue? Any ETA or workarounds would be much appreciated.
hi there we have the same issue, but there was no change to the stack/cdk, multiple deploys of the same code version lead to this error Do we have any solution or workaround for this?
I’d also love to hear an update or discuss any workarounds
any update on the issue?
I've escalated the issue internally. Been difficult to get an answer - hopefully will have an update soon
For internal service, code changes are done, and testing needs to take place. Hoping for a release by the end of the week
well, it looks like it's going to be delayed a few months. I am told by the end of september
How is CF still treated this badly? This bug has been known for almost a year now, and I just ran into it, so it is STILL not fixed.
@peterwoodworth while we are waiting for a fix, is there any workaround to solve this issue without deleting the stack and recreating it?
+1 we are stuck with this issue? any workaround?
+1 we are still stuck with this issue. Can we get an update?
I'm told is supposed to still be on track to release by the end of september, hopefully this will come to fruition
Any update on a timeline since it's now mid-October?
The new timeline is by mid-November, thanks for asking @TylerRockwell
It is already December, obviously no update from AWS and issue is still there...
I've reached out to service team again, will post an update here when possible
@brentryan @RafalSladek @binpatel31 our workaround was to
Despite changing tags with CDK should be super easy, it took us 3 hours to update tags (of our huge stacks) that way. I hope the fix is coming soon. Thre promises for a fix feels like a windows progress bar, which hangs at 99 percent ;)
Thank you very much for posting a workaround!
I still haven't received any updates or ETA from the team at this point I'm sorry to say, so I wouldn't hold out hope for this coming soon
For amazon employees, the ticket is now being tracked here ELMO-58400
Oh no, it is friday afternoon and I have fallen into exactly the same trap as two months ago 😄 I am glad my workaround still works for me. CDK seems to be a real penetrator for CloudFormation.
I hope Amazon will fix this soon.
This was resolved last week I believe.
I'm experiencing a similar issue in the eu-central-1 region. On CloudFormation stack update, CloudFormation stack tags are modified. There are no changes being made to the AWS::ElastiCache::UserGroup resource itself in the stack update, but the stack fails to update the resource with the error below. The same stack update succeeds in the us-east-1 and ca-central-1 regions. Is the fix not yet available in the eu-central-1 region?
Resource handler returned message: "Please specify the list of user identifiers to be added or removed. (Service: ElastiCache, Status Code: 400, Request ID: 62f161d0-99dc-4cca-805f-51a1ce02db24, Extended Request ID: null)" (RequestToken: 8e803cff-6052-0b87-2d67-cb7278d569f8, HandlerErrorCode: GeneralServiceException)
Since it could take years a solution is in sight, the best temporary solution is not to tag CfnUserGroups. Add this aspect to your stack:
@jsii.implements(aws_cdk.IAspect)
class TagRemoverAspect:
def visit(self, node):
# Per default we exclude following resource types from tagging:
# * Elasticache::UserGroup - has the error: "extraneous key [tags] is not
if isinstance(node, aws_cdk.aws_elasticache.CfnUserGroup):
node.add_deletion_override("Properties.Tags")
aws_cdk.Aspects.of(self).add(TagRemoverAspect())
This solution is a more universal approach than excuding tags via the Tags Manager, because you maybe don't know where in your constructs hierarchy you have applied tags.
The aspect will take care, that the CfnUserGroup didn't receive any tags from your code. No tags, no CFN problems.
This should be fixed except for in eu-central-1
it appears. The team hasn't given any word that they know this is still an issue in that region. Given this is fixed in most regions, and not in our control, I'll let this issue close out if no one comments in the next week
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
When using elasticache CfnUserGroup in a stack, the fresh deployment is successful but after changing the Tags in the stack props, the CDK deployment is failing while trying to update the UserGroup. There are no changes made to the UserGroup resource directly.
Found another to this: https://github.com/aws/aws-cdk/issues/15378. It was closed because it was not re-producible.
Reproduction Steps
Consider the stack
The stack is created as
The fresh deployment of the stack is successful and upgrade without any changes will also work fine. Then update the stack tag in the constructer to
owner-2
Update the stack using
cdk deploy
What did you expect to happen?
The stack should get updated without errors and Tags should be updated.
What actually happened?
The stack update is erroring out with the following error.
Environment
Other
This is :bug: Bug Report