2016-01-10-0450Z


learning boto3 since boto is going to stop being maintained. you first create a boto3.session.Session with args of your access key ID, your secret key, and region name. then you get both a session.resource('ec2') for high-level but incomplete access, and a session.client('ec2') for complete but low-level access. for example, both have the method create_vpc, but the first returns an actual VPC object while the latter returns a dict of attributes. but both create a VPC, which hangs around in the cloud indefinitely until destroyed.

Back to blog or home page

last updated 2016-01-09 23:59:43. served from tektonic.jcomeau.com