title: import-im6.q16: not authorized `boto3' @ error/constitute.c/WriteImage/1037
body: <p>I use AWS CLI . i installed boto3 and i try run that code. i have three errors</p>
  
  <pre><code>import boto3
  s3 = boto3.resource('s3')
  # Get list of objects for indexing
  images=[('afridi.jpg','Shahid Afridi'),
     ('sakib.jpg','Sakib Al Hasan'),
     ('kohli.jpg','Birat Kohli'),
     ('masrafi.jpg','Mashrafe Bin Mortaza'),
     ('ganguli.jpg','Sourav Ganguly')
    ]
  </code></pre>
  
  <h1>Iterate through list to upload objects to S3</h1>
  
  <pre><code>for image in images:
      file = open(image[0],'rb')
      object = s3.Object('taifur12345bucket',image[0])
      ret = object.put(Body=file,
                 Metadata={'FullName':image[1]}
                 )
  </code></pre>
  
  <p>the errors</p>
  
  <pre class="lang-none prettyprint-override"><code>import-im6.q16: not authorized `boto3' @ error/constitute.c/WriteImage/1037.
  ./code1.py: line 2: syntax error near unexpected token `('
  ./code1.py: line 2: `s3 = boto3.resource('s3')'
  </code></pre>