Skip to content

aws-cognito: "Resource of type 'AWS::Cognito::LogDeliveryConfiguration' with identifier '' already exists. #31242

Closed
@AllanOricil

Description

@AllanOricil

Describe the bug

After updating the logConfigurations array, from cognit.CfnLogDeliveryConfiguration, with a new LogConfiguration and updating and older one to point to new log group, I got this error

image

  • The ERROR log group is the one I updated the log arn
  • The INFO log group is the one I added

The ARN is built by hand because of this other issue I discovered. It works, don't worry.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

never worked

Expected Behavior

  • old LogConfiguration should have had its logs group updated without throw any errors

Current Behavior

  • can't update LogConfiguration entries

Reproduction Steps

  1. create CfnLogDeliveryConfiguration with 1 LogConfiguration of ERROR and eventSource UserNotification
  2. deploy
  3. update the LogGroup and its ARN in this LogConfiguration you just deployed
  4. deploy
  5. verify that it wont be updated and the same error will be thrown

Possible Solution

Log group configuration has to be deleted before new one can be created.

Additional Information/Context

No response

CDK CLI Version

2.154.0

Framework Version

2.154.0

Node.js Version

18.19

OS

macos

Language

TypeScript

Language Version

5.0.4

Other information

No response

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-cognitoRelated to Amazon CognitobugThis issue is a bug.closed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.needs-reproductionThis issue needs reproduction.p2response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions