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
2,005 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,170 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
5,650 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,440 points
3,778 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,440 points
2,765 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,440 points
2,229 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,440 points
987 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,440 points
2,059 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
1,338 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,170 points
10,635 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
15,152 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP