Python

Python3 and pip

I am converting some scripts to python3 and noticed the pip modules in use for python2 need to be added for python3. I am not using virtualenv so below is my fix on Ubuntu 17.10. Missing module oci. Python2 module is there. Ubuntu has python3-pip Check my converted script.

AWS API and Python Boto

Quick note on connection to EC2 to list instances. – Ensure IAM User permissions. In my case I tried EC2FullAccess. – Ensure you have your access and secret key handy. – This example just cycle through regions and list any instances. Example: $ python list.py myaccess_key mysecret_key us-east-1: [Instance:i-1aac5699] us-east-1:…