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,500 points
1,132 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,600 points
3,493 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 in AWS by MD
• 81,590 points
391 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 22 in AWS by MD
• 81,590 points
276 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 in AWS by MD
• 81,590 points
57 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 in AWS by MD
• 81,590 points
52 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 in AWS by MD
• 81,590 points
33 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,500 points
643 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
3,932 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 in AWS by anonymous
7,636 views