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?
syncroutine, but I really would like to use the one which is already offered byaws cli(which internally uses SDK (botocore)), but extends it quite a bit.