Here it is, a small and simple example on how to created presigned URLs for AWS S3 objects. #!/usr/bin/python import boto import argparse parser = argparse.ArgumentParser(description=’Generate an S3 signed URL‘) parser.add_argument(‚bucket‘, help=’bucket name‘) parser.add_argument(‚key‘, help=’prefix/key‘) parser.add_argument(’seconds‘, type=int, help=’time in seconds until…

Python is my way to go and the cx_Oracle module helps getting in contact with an Oracle database. While it is relatively easy to install it on my OS X, it is a bit harder on Debian.

Pip doesn’t have any build-in feature to update all installed packages to their latest version. Python-tools can help you here: pip install pip-tools pip-review –interactive  

Running in a cloud always means some changes in mind in comarison to a static datacenter environment. Especially if you think about security and m2m trusts. Amazon AWS has some great features like IAM Roles to handle this in a…

I recently needed to send some custom metrics to AWS Cloudwatch. This is no rocket science but a lightweight example may safe some time implementing it.

See what configuration is being used by python boto

Creation of customized Amazon Cloud Images made fast and easy!

Building debian deb packages from python setup.py project sources shown with duplicity as example.

If you need to install a specified version of a python module, you can use the following command to determine which versions are available (with ipython as example): pip install –no-deps –no-install ipython -v Installing is very simple. Just do…

Ansible is a quite nice tool for ssh based systems management and orchestration. It is written in python and hosted on github. Quite easy to install by using pip or setup.py install, but creating a deb package out of the…