git-lambda-layer | A layer for AWS Lambda that allows your functions | Function As A Service library
kandi X-RAY | git-lambda-layer Summary
kandi X-RAY | git-lambda-layer Summary
A layer for AWS Lambda that allows your functions to use `git` and `ssh` binaries
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of git-lambda-layer
git-lambda-layer Key Features
git-lambda-layer Examples and Code Snippets
Community Discussions
Trending Discussions on git-lambda-layer
QUESTION
I'm using subprocess() on AWS lambda And using this layer: https://github.com/lambci/git-lambda-layer
Here is code:
...ANSWER
Answered 2020-Jun-02 at 17:25There are a few problems.
First, you need to wait for the git
process to exit. To do this with subprocess.Popen
, call .wait()
on the returned Popen
object. However, I'd recommend using subprocess.check_call()
instead to automatically wait for the process to exit and to raise an error if the process returns a non-zero exit status.
Second, there's no need to specify shell=True
since you're not using any shell expansions or built-ins. In fact, when passing an argument list when using shell=True
, the first item is the command string, and the remaining items are arguments to the shell itself, not the command.
Lastly, you're missing a slash in your GitHub URL.
Try this instead:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install git-lambda-layer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page