You are right, this add_attribute is not here right now. It looks like you need to use update_item api on boto.dynamodb.layer1.
Adding working code - I tried locally on DynamoDB:
conn.update_item(
"table-1",
{"firstKey":{"S":"12345"}},
{"counter":{"Action":"ADD","Value":{"N":"1"}}}
)
Here it increments the counter by 1 on the table, which has "firstKey" as a Hashkey.
source
share