Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (1.4k points)

AWS CLI was connected to my account via AWS configure. I tried invoking the lambda function using AWS CLI. I used the following command

aws lambda invoke \ --function-name

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

RequestResponse

but it ended up with the following error

aws: error: too few arguments

Please suggest me with solutions. 

1 Answer

0 votes
by (2.6k points)
edited by

Kindly re-run that as follows as you need to provide an outfile.

aws lambda invoke \ --function-name arn:aws:lambda:us-east-

1:111111111:function:xxx \ --invocation-type

RequestResponse \ outfile.txt

Want to learn more about AWS, and become a master by enrolling for Intellipaat's AWS Certification Course!

To learn more aws lambda tutorial.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...