title: Access bucket using S3cmd with IAM role
body: <p>I have the following configured in ~/.aws/config file.</p>
  
  <p><code>[profile profilename]
  role_arn = arn:aws:iam::106546725123:role/rolename
  credential_source = Ec2InstanceMetadata</code></p>
  
  <p>i can successfully access an s3 bucket using aws CLI with the below command</p>
  
  <p><code>aws s3 ls s3://&lt;bucket_name&gt; --profile profilename</code></p>
  
  <p>I now need to access the bucket using s3cmd. Please help with the command to access the bucket using s3cmd using IAM role.</p>
  
  <p>The version fo s3cmd installed is 1.5.0-alpha2</p>