Error when tried to invoke lambda function by AWS CLI

0 votes

I'm trying to invoke a lambda function from my AWS CLI.  I've have connected AWS CLI to my account through AWS configure.

The command used is:

aws lambda invoke \ --function-name arn:aws:lambda:us-east-1:111111111:function:xxx \ --invocation-type RequestResponse

but my system is returning an error aws: error: too few arguments. Any solution?

Sep 10, 2018 in AWS by datageek
• 2,530 points
1,609 views

1 answer to this question.

0 votes

It looks like you need to provide an outfile. So re-run it as follows:

aws lambda invoke \ --function-name arn:aws:lambda:us-east-1:111111111:function:xxx \ --invocation-type RequestResponse \ outfile.txt

answered Sep 10, 2018 by Archana
• 4,150 points

Related Questions In AWS

0 votes
1 answer

How to invoke the AWS lambda function from Java code

There are 2 methods in this class which should ...READ MORE

answered Feb 19, 2019 in AWS by Archana
• 5,640 points
4,565 views
0 votes
1 answer

How to setup an alarm when Lambda function fails in AWS?

Hi@akhtar, To create an Alarm for Lambda function, ...READ MORE

answered Apr 2, 2020 in AWS by MD
• 95,360 points
1,651 views
0 votes
1 answer

How to update aws lambda function using aws cli?

Hi@akhtar, You can update your Lambda function in ...READ MORE

answered Sep 23, 2020 in AWS by MD
• 95,360 points
1,842 views
0 votes
1 answer

how to get the list of aws services i am used in aws my account by using the lambda function

Hi@shalk, You can create a session in your ...READ MORE

answered Sep 24, 2020 in AWS by MD
• 95,360 points
1,256 views
0 votes
1 answer

How to create a Lambda function with AWS CLI?

Hi@akhtar, To create a function, you need a ...READ MORE

answered Nov 5, 2020 in AWS by MD
• 95,360 points
558 views
0 votes
1 answer

How to delete a Lambda function using AWS CLI?

Hi@akhtar, You can delete a Lambda function. To ...READ MORE

answered Nov 5, 2020 in AWS by MD
• 95,360 points
883 views
0 votes
1 answer

How to link AWS Lambda function to Amazon CloudWatch ?

In order to create Log Group and ...READ MORE

answered Jul 20, 2018 in AWS by datageek
• 2,530 points
940 views
0 votes
1 answer

AWS S3 CLI : error while trying to copy files locally using terminal

For the first error you should add ...READ MORE

answered Aug 3, 2018 in AWS by Archana
• 4,150 points
7,474 views
0 votes
2 answers

How do I add python libraries to an AWS lambda function for Alexa?

If you get lucky (it depends what ...READ MORE

answered Nov 3, 2020 in AWS by anonymous
14,057 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP