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,390 points
260 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 3,770 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 in AWS by Archana
• 5,360 points
158 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,390 points
78 views
0 votes
1 answer

AWS Access Key error when uploading to S3

You can try getting creating a new ...READ MORE

answered Feb 6 in AWS by Priyaj
• 56,120 points
605 views
0 votes
1 answer

how to import numpy and pandas inside aws lambda function?

The problem is that your local numpy ...READ MORE

answered Sep 14, 2018 in AWS by Priyaj
• 56,120 points
1,235 views
0 votes
1 answer
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
• 3,770 points
634 views
0 votes
1 answer

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

As it is described in the Amazon ...READ MORE

answered Oct 23, 2018 in AWS by Archana
• 3,770 points
86 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.