intro to aws and boto3
play

Intro to AWS and Boto3 IN TRODUCTION TO AW S BOTO IN P YTH ON - PowerPoint PPT Presentation

Intro to AWS and Boto3 IN TRODUCTION TO AW S BOTO IN P YTH ON Maksim Pecherskiy Data Engineer What is Amazon Web Services? Our Home Our Data Project INTRODUCTION TO AWS BOTO IN PYTHON What is Boto3? import boto3 s3 = boto3.client('s3',


  1. Intro to AWS and Boto3 IN TRODUCTION TO AW S BOTO IN P YTH ON Maksim Pecherskiy Data Engineer

  2. What is Amazon Web Services? Our Home Our Data Project INTRODUCTION TO AWS BOTO IN PYTHON

  3. What is Boto3? import boto3 s3 = boto3.client('s3', region_name='us-east-1', aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET) response = s3.list_buckets() INTRODUCTION TO AWS BOTO IN PYTHON

  4. AWS console INTRODUCTION TO AWS BOTO IN PYTHON

  5. Creating keys with IAM. INTRODUCTION TO AWS BOTO IN PYTHON

  6. Creating keys with IAM INTRODUCTION TO AWS BOTO IN PYTHON

  7. INTRODUCTION TO AWS BOTO IN PYTHON

  8. INTRODUCTION TO AWS BOTO IN PYTHON

  9. INTRODUCTION TO AWS BOTO IN PYTHON

  10. INTRODUCTION TO AWS BOTO IN PYTHON

  11. INTRODUCTION TO AWS BOTO IN PYTHON

  12. INTRODUCTION TO AWS BOTO IN PYTHON

  13. INTRODUCTION TO AWS BOTO IN PYTHON

  14. AWS services INTRODUCTION TO AWS BOTO IN PYTHON

  15. AWS services INTRODUCTION TO AWS BOTO IN PYTHON

  16. AWS services INTRODUCTION TO AWS BOTO IN PYTHON

  17. AWS services INTRODUCTION TO AWS BOTO IN PYTHON

  18. AWS services INTRODUCTION TO AWS BOTO IN PYTHON

  19. Sam INTRODUCTION TO AWS BOTO IN PYTHON

  20. GetItDone 1 2 3 4 https://data.sandiego.gov/datasets/get it done 311/ INTRODUCTION TO AWS BOTO IN PYTHON

  21. Summary AWS Services = Home Utilities IAM, S3, SNS, Comprehend and Rekognition AWS Key / Secret Connecting to S3 Using Boto import boto3 s3 = boto3.client('s3', region_name='us-east-1', aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET) response = s3.list_buckets() INTRODUCTION TO AWS BOTO IN PYTHON

  22. Let's harness the cloud! IN TRODUCTION TO AW S BOTO IN P YTH ON

  23. Diving into buckets IN TRODUCTION TO AW S BOTO IN P YTH ON Maksim Pecherskiy Data Engineer

  24. S3 Components - Buckets Desktop folders Own permission policy Website storage Generate logs INTRODUCTION TO AWS BOTO IN PYTHON

  25. S3 Components - Objects INTRODUCTION TO AWS BOTO IN PYTHON

  26. What can we do with buckets? Create Bucket List Buckets Delete Bucket INTRODUCTION TO AWS BOTO IN PYTHON

  27. Creating a Bucket Create boto3 client import boto3 s3 = boto3.client('s3', region_name='us-east-1', aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET) Create bucket! bucket = s3.create_bucket(Bucket='gid-requests') INTRODUCTION TO AWS BOTO IN PYTHON

  28. Bang! INTRODUCTION TO AWS BOTO IN PYTHON

  29. Our bucket in the console INTRODUCTION TO AWS BOTO IN PYTHON

  30. Listing buckets Create boto3 client import boto3 s3 = boto3.client('s3', region_name='us-east-1', aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET) List Buckets bucket_response = s3.list_buckets() INTRODUCTION TO AWS BOTO IN PYTHON

  31. Listing Buckets Get Buckets Dictionary buckets = bucket_response['Buckets'] print(buckets) INTRODUCTION TO AWS BOTO IN PYTHON

  32. Listing Buckets INTRODUCTION TO AWS BOTO IN PYTHON

  33. Deleting buckets Create boto3 client import boto3 s3 = boto3.client('s3', region_name='us-east-1', aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET) Delete Bucket response = s3.delete_bucket('gid-requests') INTRODUCTION TO AWS BOTO IN PYTHON

  34. Bye Bye Bucket INTRODUCTION TO AWS BOTO IN PYTHON

  35. Bye Bye Bucket INTRODUCTION TO AWS BOTO IN PYTHON

  36. Other operations INTRODUCTION TO AWS BOTO IN PYTHON

  37. Summary s3.create_bucket(Bucket='buck') s3.list_buckets() s3.delete_bucket(Bucket='buck') INTRODUCTION TO AWS BOTO IN PYTHON

  38. Let's practice! IN TRODUCTION TO AW S BOTO IN P YTH ON

  39. Uploading and retrieving �les IN TRODUCTION TO AW S BOTO IN P YTH ON Maksim Pecherskiy Data engineer

  40. Buckets and objects INTRODUCTION TO AWS BOTO IN PYTHON

  41. A Bucket An Object An object has a key A bucket has a name Name is full path from bucket root Name is a string Unique key in the bucket Unique name in all of S3. Can only be in one parent bucket Contains many objects INTRODUCTION TO AWS BOTO IN PYTHON

  42. Creating the client s3 = boto3.client( 's3', region_name='us-east-1', aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET ) INTRODUCTION TO AWS BOTO IN PYTHON

  43. Uploading �les s3.upload_file( Filename='gid_requests_2019_01_01.csv', Bucket='gid-requests', Key='gid_requests_2019_01_01.csv') INTRODUCTION TO AWS BOTO IN PYTHON

  44. Uploading �les INTRODUCTION TO AWS BOTO IN PYTHON

  45. Uploading more objects INTRODUCTION TO AWS BOTO IN PYTHON

  46. Listing objects in a bucket response = s3.list_objects( Bucket='gid-requests', MaxKeys=2, Prefix='gid_requests_2019_') print(response) INTRODUCTION TO AWS BOTO IN PYTHON

  47. Listing objects in a bucket INTRODUCTION TO AWS BOTO IN PYTHON

  48. Listing objects in a bucket INTRODUCTION TO AWS BOTO IN PYTHON

  49. Listing objects in a bucket INTRODUCTION TO AWS BOTO IN PYTHON

  50. Getting object metadata response = s3.head_object( Bucket='gid-requests', Key='gid_requests_2018_12_30.csv') print(response) INTRODUCTION TO AWS BOTO IN PYTHON

  51. Getting object metadata INTRODUCTION TO AWS BOTO IN PYTHON

  52. Downloading �les s3.download_file( Filename='gid_requests_downed.csv', Bucket='gid-requests', Key='gid_requests_2018_12_30.csv') INTRODUCTION TO AWS BOTO IN PYTHON

  53. Deleting objects s3.delete_object( Bucket='gid-requests', Key='gid_requests_2018_12_30.csv') INTRODUCTION TO AWS BOTO IN PYTHON

  54. Summary Buckets are like folders Objects are like �les boto3.client() s3.upload_file() s3.list_objects() s3.head_object() s3.download_file() s3.delete_object() INTRODUCTION TO AWS BOTO IN PYTHON

  55. Let's make some objects! IN TRODUCTION TO AW S BOTO IN P YTH ON

Recommend


More recommend