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

Unable to test Lambda Destinations from console #7652

Closed
milestojakovic opened this issue Apr 28, 2020 · 6 comments
Closed

Unable to test Lambda Destinations from console #7652

milestojakovic opened this issue Apr 28, 2020 · 6 comments
Assignees
Labels
@aws-cdk/aws-lambda Related to AWS Lambda bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@milestojakovic
Copy link

milestojakovic commented Apr 28, 2020

The console invocations of lambda functions do not test destinations. It looks like console invocations are synchronous and not of the Event type (Asynchronous).

Reproduction Steps

  1. crate a simple Lambda function
  2. add a destination of any type
  3. create a simple test event
  4. invoke the Lambda function from the console

Result: The Lambda function is invoked, but the event is not put on the destination. This happens without any notification.

This is 🐛 Bug Report

@milestojakovic milestojakovic added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 28, 2020
@SomayaB SomayaB added the @aws-cdk/aws-lambda Related to AWS Lambda label Apr 29, 2020
@nija-at
Copy link
Contributor

nija-at commented Apr 29, 2020

Hello -

This repo is tracking issues related to the CDK. We don't own the AWS console experience; you will need to open an issue with AWS support for this.

@nija-at nija-at closed this as completed Apr 29, 2020
@milestojakovic
Copy link
Author

milestojakovic commented Apr 29, 2020

Hi,

Thanks for the update. I opened the ticket with AWS support. They said that this is beyond of the scope which they are able to handle and they are asking me to upgrade to paid support plan. I don't want to pay support plan, and I have workaround for this. This is a bug in AWS console. Is there any chance to forward this issue to developers who own the AWS console experience, so they can test and fix it.

@iph
Copy link
Contributor

iph commented Apr 29, 2020

Howdy! I work on the Lambda team. I will submit an issue, though we cannot use this as a tracking ticket -- cdk has nothing to do with Lambda Console :)

The real issue is that you can't test async function invokes on the console. Event Destinations only occur on async invoke. The console experience should have this functionality for people that need to test async invokes. Every time you hit "test", you are doing a request-response invoke.

In the meantime, if you have installed the aws cli, and know your function name, you can run:

aws lambda invoke --function-name FUNC_NAME_HERE --invocation-type Event /tmp/output.txt
cat /tmp/output.txt

@milestojakovic
Copy link
Author

milestojakovic commented Apr 29, 2020

Hi @iph ,
I appreciate the help. yes, I am invoking functions with CLI calls of the Event type. I thought it would be nice to have this functionality in the console.

I have noticed another bug with Destinations feature. Could you please check #7654 and submit an issue as well?

Also, could you please let me know issue numbers so I can follow them? I was unable to find to find the repo, that's why i opened an issue here. :)

Thank you in advance.

@iph
Copy link
Contributor

iph commented Apr 29, 2020

We filed a new issue for the one you just linked, and the other one was known about a few months back so added the data on that.

Also, could you please let me know issue numbers so I can follow them? I was unable to find to find the repo, that's why i opened an issue here. :)

There is no open source repo for Lambda and these issues, so I can't give you issue numbers :
A lot of the times, these are part of much larger efforts that could tie in with other requests and so can't give dates. CDK issues isn't the right place, so let's not add more issues. Support tickets get funneled to us, so that is the best avenue (in fact, someone pinged me about 7654, so despite not having paid support, we still get the requests).

@milestojakovic
Copy link
Author

This is useful information. Good to know that support tickets get funneled to you without having paid support plans. I was hoping to get that information from the support team, but without luck. Thanks again. Appreciate your help and time.

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 bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants