Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
AllanOricil opened this issue Aug 28, 2024 · 2 comments
Assignees
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. needs-reproduction This issue needs reproduction. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@AllanOricil
Copy link

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

@AllanOricil AllanOricil added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 28, 2024
@github-actions github-actions bot added the @aws-cdk/aws-cognito Related to Amazon Cognito label Aug 28, 2024
@ashishdhingra ashishdhingra self-assigned this Aug 29, 2024
@ashishdhingra ashishdhingra added p2 needs-reproduction This issue needs reproduction. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 29, 2024
@ashishdhingra
Copy link
Contributor

@AllanOricil Good afternoon. Could you please share the following:

  • Minimal reproducible code along with steps which updates the LogGroup Arn? (I understand you are affected by issue aws-cognito: CfnLogDeliveryConfiguration wrong regular expression #31241, for which we have opened ticket with the CloudFormation team)
  • Output of cdk synth, before and after 1st and 3rd step.
  • Textual content of error (instead of screenshot) so that is's more readable.

Thanks,
Ashish

@ashishdhingra ashishdhingra added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Aug 29, 2024
Copy link

github-actions bot commented Sep 1, 2024

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.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Sep 1, 2024
@github-actions github-actions bot added closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Sep 6, 2024
@github-actions github-actions bot closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. needs-reproduction This issue needs reproduction. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants