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,440 points
531 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,090 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,560 points
1,090 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,440 points
209 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,900 points
1,458 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,900 points
2,966 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
• 4,090 points
1,542 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
• 4,090 points
674 views