Integrating Local To S3
Integrating Local To S3
7. In Permission policies, search for S3. In the listed policy name select
AmazonS3FullAccess.
8. Select the policy and click Next.
14. Now from Retrieve access keys, copy Access key and Secret access key.
15. Now open any python editor, for here we are using jupyter notebook.
16. Store the access key & secret key in variable.
17. Now we’ll use boto3 library, which is a AWS SDK(Software Development
Kit) for python. Boto3 makes it easy to integrate your Python
application, library, or script with AWS services including Amazon S3,
Amazon EC2, Amazon DynamoDB, and more.
Here we’ll use boto3 to create bucket, list bucket & read contents of the
bucket.
18. Use AWS documentation for references on tools, code and services.
19. Search for s3 client.
20. We have different option such as create bucket, delete bucket, list bucket,
etc.
21. We’ll be taking references for from this document in coming topics.
22. First of all let’s create some bucket and object inside buckets in AWS S3.
23. We have created this two buckets.
24. Objects inside folder in the first bucket are
26. We will access this objects and bucket through CLI using boto3 library.
27. Listing buckets
37. This file is binary file so we need to import io and convert the file