I’ve been trying to learn more about AWS Lambda, at the same time learning some web development. For a newcomer to web application development, there is the question of whether you work on leveling up with traditional server based apps or “serverless”, aka FaaS, aka Lambda. I wanted to try converting a simple Flask app to Lambda, this is how I did it.
I spent a little time with Zappa today which is an AWS Lambda (aka “serverless”) framework for Python. Its not hard to create a very basic Flask application, then invoke Zappa to perform the many manual steps of creating a Lambda function, resulting in a URL where your application is running.
Another common error is that the docker daemon cannot connect to the outside world to download anything during build time. This can be corrected in a number of ways, but I have done it thusly.
I always forget this when trying to run docker as a non-root user, so documenting it for posterity.
If you get an error connecting to the docker daemon as a standard user, such as:
I was interested in a job description a company posted via Twitter, but I couldn’t view the text and didn’t understand why. This wasn’t the first time this happened so decided to dig into the problem and determine if it was an issue with my environment or the website.