...
| Code Block | ||
|---|---|---|
| ||
#Uploading a file to the bucket (make sure you have write access)
response = s3.upload_file('myfile', bucketname, 'myfile') #Fill this in |
And lastly, creating a bucket (this could take some time):
| Code Block |
|---|
s3.create_bucket("MyBucket") |
If you're interested in more, I recommend taking a look at this article, which gives you a more detailed view into boto3's functionality (although it does emphasize on Amazon Web Services specifically, you can take a look at the Python code involved):
...