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 in AWS by datageek
• 3,040 points
38 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 by Archana
• 5,560 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
• 56,200 points
44 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,750 points
68 views
0 votes
1 answer
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
• 56,200 points
1,439 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
• 56,200 points
189 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 14 in AWS by Archana
• 5,560 points
15 views