-
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
(lambda-event-sources): on_failure
parameter is not supported for SelfManagedKafkaEventSource
#19917
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
@aws-cdk/aws-lambda-event-sources
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
Comments
sawalanipawan
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Apr 14, 2022
sawalanipawan
changed the title
(module name): (short issue description)
Apr 14, 2022
on_failure
parameter is not supported for SelfManagedKafkaEventSource
kaizencc
changed the title
(lambda-event-sources): Apr 15, 2022
on_failure
parameter is not supported for SelfManagedKafkaEventSource
on_failure
parameter is not supported for SelfManagedKafkaEventSource
kaizencc
added
@aws-cdk/aws-lambda-event-sources
p1
effort/small
Small work item – less than a day of effort
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Apr 15, 2022
Apologies about this, @sawalanipawan! This is a poor user experience we should rectify |
4 tasks
mergify bot
pushed a commit
that referenced
this issue
Apr 20, 2022
…EventSources (#19995) Closes #19917. Seems this was missed in a previous fix: #17965. Adding breaking changes to `allowed-breaking-changes.txt` because they never worked in the first place. ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/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/master/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*
|
StevePotter
pushed a commit
to StevePotter/aws-cdk
that referenced
this issue
Apr 27, 2022
…EventSources (aws#19995) Closes aws#19917. Seems this was missed in a previous fix: aws#17965. Adding breaking changes to `allowed-breaking-changes.txt` because they never worked in the first place. ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/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/master/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*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
@aws-cdk/aws-lambda-event-sources
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
Describe the bug
As per (https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.aws_lambda_event_sources/SelfManagedKafkaEventSource.html
https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_lambda_event_sources/SelfManagedKafkaEventSource.html) we can specify
on_failure
parameter in theSelfManagedKafkaEventSource
.But the CloudFormation stack deployment fails with below error:
Upon checking the CFN documentation (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) for
AWS::Lambda::EventSourceMapping
resource, addingdestinationConfig
is only supported for 'Stream' event sources, which are DynamoDB and Kinesis.I spun up a test Kafka cluster and then using CDK I created the lambda function that has self-managed Apache Kafka event source.
The
cdk synth
command ran successfully.After running the
cdk deploy
command, the corresponding CFN stack failed with below error:This implies that
on_failure
parameter is not supported forSelfManagedKafkaEventSource
.Also, on AWS console, if you try adding the Apache Kafka event source, you will not find the
On-failure destination
option.But you can see the
On-failure destination
option for DynamoDB and Kinesis event source.Expected Behavior
For
AWS::Lambda::EventSourceMapping
resource, addingDestinationConfig
is only supported for 'Stream' event sources, which are DynamoDB and Kinesis.So, this option should be removed from
SelfManagedKafkaEventSource
.Current Behavior
The
cdk synth
command ran successfully.After running the
cdk deploy
command, the corresponding CFN stack failed with below error:Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
1.152.0 (build 9487b39)
Framework Version
No response
Node.js Version
v16.13.0
OS
Mac
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: