-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: CfnLogDeliveryConfiguration wrong regular expression #31241
Labels
@aws-cdk/aws-cognito
Related to Amazon Cognito
bug
This issue is a bug.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Comments
AllanOricil
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Aug 28, 2024
1 task
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
added
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
and removed
needs-reproduction
This issue needs reproduction.
labels
Aug 29, 2024
Internal tracking ticket: P151524663 |
AllanOricil
changed the title
aws-cognito: Wrong regular expression
aws-cognito: CfnLogDeliveryConfiguration wrong regular expression
Aug 29, 2024
This was referenced Sep 1, 2024
internal: V1486562731 |
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.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Describe the bug
I can't create a
CfnLogDeliveryConfiguration
because it is not accepting my log group arnAs you can see, the issue is with the "*" at the end, which the regular expression for CloudWatchLogsConfiguration.logGroupArn doesn't accept.
Regression Issue
Apparently you touched it already, according to a ticket a guy reported few months ago. But it broke again in a different part of the regex
https://repost.aws/questions/QUhjYRB83zR_Od3frN-PRQww/cloudformation-regex-validation-error-in-cognito-logdeliveryconfiguration-cloudwatchlogsconfiguration-loggrouparn
Last Known Working CDK Version
2.154.0
Expected Behavior
CfnLogDeliveryConfiguration.logConfigurations.cloudWatchLogsConfiguration.logGroupArn must accept Logs Group Arns that end with "*"
The official documentation for this property is also wrong, as you can see in the image below
source: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-cloudwatchlogsconfiguration.htmlCurrent Behavior
Reproduction Steps
Try to deploy a CDK V2 Stack with these constructs in it
Possible Solution
Before validating the ARN, which is generated by cloudformation, split it by : , remove the last token, validate. This way you don't need to change the regex expression you currently use.
WORKAROUND
Build the arn yourself instead of relying on cloudfromation
Additional Information/Context
No response
CDK CLI Version
2.154.0
Framework Version
No response
Node.js Version
18.19
OS
macos
Language
TypeScript
Language Version
5.0.4
Other information
No response
The text was updated successfully, but these errors were encountered: