Errata

Python and AWS Cookbook

Errata for Python and AWS Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF, , Other Digital Version Page 1
N/A

Please provide the source code. Python does not cut and paste well from digital formats.

Sal Mangano
 
Nov 15, 2011 
PDF Page 4
2nd paragraph

Very minor technical detail on installing `euca2ools` on Ubuntu. The `sudo apt-get` statement is missing `install`.

For clarity, it should read:

`sudo apt-get install -y euca2ools`

Not:

`sudo apt-get -y euca2ools`

Benjamin Petersen  Feb 14, 2013 
Printed Page 35
code

*if len(rs) != 1:*

*raise ValueError('Unable to find instance: %s' % instance_id)*


This throws an error where 10 values are passed instead of 2, creating a
__dict__ error. Removing these 2 lines and putting in the following fixed
the problem:

if rs:
#Nested loop, for r in reservations: for each i in instances (each
instance in each reservation)
instances = [i for r in rs for i in r.instances]

for i in instances:
#If instance ID matches user provided instance ID, monitor instance
if i.id == instance_id:

Anonymous  Mar 07, 2016 
Printed Page 35
code

*evaluationn_periods=eval_periods* *should be*
*evaluation_periods=eval_periods*

'and

*alarm_actions=[topic_arn]* *should be* *alarm_action=[topic_arn]*

Anonymous  Mar 07, 2016