-
Notifications
You must be signed in to change notification settings - Fork 4k
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-lambda): (event source mapping, unnecessary validation of input) #22932
Comments
Thanks for reporting this, we've had similar bugs in the past so this makes sense. Based on your PR it looks like you got it 🙂 Hopefully it won't be too long until we're able to give a proper review for your PR |
- fix(lambda): allow token kafka consumer group id - fix(lambda): typo in kafka consumer group id validation Fixes: #22932 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
- fix(lambda): allow token kafka consumer group id - fix(lambda): typo in kafka consumer group id validation Fixes: aws#22932 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- fix(lambda): allow token kafka consumer group id - fix(lambda): typo in kafka consumer group id validation Fixes: aws#22932 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- fix(lambda): allow token kafka consumer group id - fix(lambda): typo in kafka consumer group id validation Fixes: aws#22932 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
SelfManagedKafkaEventSource
tries to validate the input value ofconsumerGroupId
which is generally good behavior, but if the user wants to pass a value that gets resolved while synth, it is not possible.Expected Behavior
SelfManagedKafkaEventSource
should not validateconsumerGroupId
value, if the value is unresolvedToken
.Current Behavior
While synthesizing the code CDK throws an error:
Error: kafkaConsumerGroupId contain ivalid characters. Allowed values are "[a-zA-Z0-9-/*:_+=.@-]"
Reproduction Steps
NodejsFunction
.addEventSource
method to add the newSelfManagedKafkaEventSource
SelfManagedKafkaEventSource
giveconsumerGroupId
that is a unresolvedToken
, e.g. Lambda Function,.functionName
Possible Solution
@RomainMuller suggested disabling the validation for unresolved tokens.
Additional Information/Context
No response
CDK CLI Version
2.50.0 (build 4c11af6)
Framework Version
No response
Node.js Version
v16.18.1
OS
macOS 13.1 Beta (22C5044e)
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: