from boto.s3.connection import S3Connection
AWS_KEY = 'abc'
AWS_SECRET = 'xyz'
print AWS_KEY
print AWS_SECRET
aws_connection = S3Connection(AWS_KEY, AWS_SECRET)
print aws_connection
#Create the bucket in a specific region.
bucket = aws_connection.create_bucket('mybucket0005',location='us-west-2')
This code i am running for creating bucket;but getting below Error,
Traceback (most recent call last):
File "<ipython-input-63-f14efbf83dc6>", line 16, in <module>
bucket = aws_connection.create_bucket('mybucket0005',location='us-west-2')
File "/usr/local/lib/python2.7/dist-packages/boto/s3/connection.py", line 625, in create_bucket
response.status, response.reason, body)
S3ResponseError: S3ResponseError: 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidAccessKeyId</Code><Message>The AWS Access Key Id you provided does not exist in our records.</Message>
<AWSAccessKeyId>abc</AWSAccessKeyId><RequestId>930E9DC30F239D11</RequestId><HostId>xlaLEeS7C4KYgLOKOShF9uGhLgM+4OdFYiLGn7F5JvKty38kAir5vSNSDH7q5TWFPO/6BEjeHaA=</HostId></Error>
I want to Access AWS S3 Files from Python.Help me out.
