I would like to run aws cli command (actually aws s3 sync) from within the aws lambda function. How do I do that? Ideally in python, but javascript (or java) would work too.
Using python I tried achieving this by Creating a Deployment Package where i would have awscli as a python package, so that I can use it later.
However, the aws command is not available during lambda function execution, and only the awscli package is.
How can I:
- either: make sure that I have
awscliavailable to be called during lambda function execution? - or: construct a
aws s3 synccall directly from pythonawsclilibrary?