Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

~/.aws/credentials setup and boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request #3792

Open
rahul6612 opened this issue Feb 24, 2018 · 1 comment

Comments

@rahul6612
Copy link

i have to set up this credentials ~/.aws/credentials in my django projet but i don't know what is this first time i seen it please tell me where and how i have to add this in my django project. i want to setup this because i am getting this error (boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request) in py django project when i am running "python manage.py collectstatic" command and my reasion is mumbai. i uploaded my website on heroku but that not showing images so i am trying to serve it using aws s3 but due to this error message i am not able to move further many people recommend to setup this " ~/.aws/credentials" so please tell me in detail what i have to do ?

@rahul6612
Copy link
Author

i got that to create .aws or .aws/credentials first of all you have to install the AWS CLI with pip (Windows) like this "pip install awscli" to confirm that it is installed or not type command (C:\Windows\System32> aws --version) it will show the version of aws cli and location will be (aws-cli/1.11.84 Python/3.6.2 Windows/7 botocore/1.5.47)
after then install MSI installer (64-bit) (https://s3.amazonaws.com/aws-cli/AWSCLI64.msi) this link for 64 bit only.
then it's time to create Credentials for that type command(make sure pip should be installed) "aws configure" it will ask for AWS Access Key ID [****************55EQ], AWS Secret Access Key [****************FqCk],Default region name [Mumbai], D**efault output format [None]:**you provide all the values
that's it now go to (C:\Users\UserName) there you will see the .aws fill will be generate which will hold the credential file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant