AWS CLI can be used to retrieve the console output from an EC2 instance. This can be of great help in debugging and troubleshooting.
aws ec2 get-console-output --instance-id <my-instance-id>
Deploying python projects in virutal environemnts is a fairly standard practice. Such a deployment process could include a step to install all required python modules from a requirement file like so:
(your_virtual_env)> pip install -r requirements.txt
Does it seem a bit odd that we didn't ...
One of Python's most useful feature is its Regular Expression support. However, it is easy to get a regular expression wrong and if you do, debugging it can be a painful as well. Fortunately, Python allows us to set a DEBUG flag during compilation of a regular expression.
import re pat = re...