amazon web services - Not able to get aws resources through python -


[root@localhost desktop]# python python 2.7.5 (default, sep 15 2016, 22:37:39)  [gcc 4.8.5 20150623 (red hat 4.8.5-4)] on linux2 type "help", "copyright", "credits" or "license" more information. >>> import boto3 >>> s3=boto3.resources('s3') traceback (most recent call last):   file "<stdin>", line 1, in <module> typeerror: 'module' object not callable 

reources module, resource function 1 looking for.

>>> boto3.resources <module 'boto3.resources' '/usr/local/lib/python2.7/site-packages/boto3/resources/__init__.pyc'> >>> boto3.resource <function resource @ 0x7fbf18615410> >>> boto3 import resources 

so, should call resource

s3=boto3.resource('s3') 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -