2

Here is my simple code:

import boto.dynamodb
conn = boto.dynamodb.connect_to_region(
   'us-east-1',
   aws_access_key_id='....',
   aws_secret_access_key='....')
print conn

and I get:

Traceback (most recent call last):
  File "startMarch28.py", line 5, in <module>
    conn = boto.dynamodb.connect_to_region(
AttributeError: 'module' object has no attribute 'connect_to_region'
Shreyos Adikari
  • 12,348
  • 19
  • 73
  • 82
brendan8229
  • 47
  • 1
  • 2
  • 9

1 Answers1

3

There is no connect_to_region() function in boto.dynamodb in boto==2.2.2 version.

Upgrade the module to the latest (2.27.0) version:

pip install boto --upgrade
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195