Is there a way to call AWS CLI form AWS Lambda

0 votes

Is it even possible to execute aws-cli inside AWS Lambda? According to what I know it doesn't seem to be pre-installed. So, how do I call CLI form inside the Lambda service?

Apr 10, 2019 in AWS by datageek
• 3,090 points
2,114 views

1 answer to this question.

0 votes

You can use the AWS node.js SDK which should be available in Lambda without installing it. As far as I can tell you get most, if not all the cli functionality.

Or maybe you include it (and all of its dependencies) as part of your deployment package. Even then you would have to call it from within python since Lambda doesn't allow you to execute shell commands. It's not recommended though

answered Apr 10, 2019 by Archana
• 5,640 points

Related Questions In AWS

0 votes
1 answer

Is there a way to move AWS Elasticsearch to another account

Create a role with Elasticsearch permission. Provide the iam:PassRole for ...READ MORE

answered Oct 30, 2018 in AWS by Priyaj
• 58,060 points
2,050 views
0 votes
0 answers

Is there a way to implement event and lambda for all accounts

I have a problem where a third ...READ MORE

Dec 14, 2022 in AWS by Roshan
• 300 points
334 views
+1 vote
2 answers

Is there a API to get AWS Marketplace Products

AWS Marketplace Entitlement Service API Reference The AWS ...READ MORE

answered Aug 1, 2018 in AWS by findingbugs
• 4,780 points
1,150 views
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 58,060 points
10,100 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,060 points
5,937 views
0 votes
1 answer

Is it possible to add a compatibility layer above AWS?

Well there are few tools like TyphoonAE ...READ MORE

answered Jan 15, 2019 in AWS by Archana
• 5,640 points
579 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