Skip to content
← Back to Community
How to connect aws buckets to repl
Profile icon
SBCKing

so I've stored a json file in a aws s3 bucket but how do I access it from repl using boto3. Is there a linux terminal somewhere I can access or something?

Answered by AdCharity [earned 5 cycles]
View Answer
Voters
Profile icon
Cristian111
Profile icon
AbhijitSingh8
Profile icon
SBCKing
Comments
hotnewtop
Profile icon
AdCharity

you can store keys in a .env file

Profile icon
SBCKing

@AdCharity thanks I'll try that and tell you how it goes

Profile icon
SBCKing

@SBCKing WORKS!!! Thanks!! will try to implement this into my music quiz.
I had to hard code and give boto3 the configurations whereas previously on my laptop it defaulted and extracted them from my home directory.

Profile icon
AdCharity

@SBCKing no problem :D

Profile icon
SixBeeps

Where are you having problems?

Profile icon
SBCKing

@niorg2606 I forgot to add the repl sorry. I run the following and after awhile I got given a massive list of errors. After it installs dependencies from lock file.
I dont know where it is actually downloading the file I told it to download to a directory called /tmp which works on my laptop from pycharm but not here.

Profile icon
SixBeeps

@SBCKing Gotcha. Have you looked at this yet?

Profile icon
SBCKing

@niorg2606 On my laptop it works as I stored all the aws keys under my home directory. however here I'm not sure how to store them in repl as in where can i store the config files with my access keys. I tried making the bucket public still to no avail.