แนะนำ AWS และ Boto3

Python เบื้องต้นสำหรับ AWS Boto

Maksim Pecherskiy

Data Engineer

Amazon Web Services คืออะไร?

บ้านของเรา

บริการหลัก

โปรเจกต์ข้อมูลของเรา

AWS Services

Python เบื้องต้นสำหรับ AWS Boto

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()
Python เบื้องต้นสำหรับ AWS Boto

AWS console

Python เบื้องต้นสำหรับ AWS Boto

สร้างคีย์ด้วย IAM

ภาพรวม IAM

Python เบื้องต้นสำหรับ AWS Boto

สร้างคีย์ด้วย IAM

ภาพรวม IAM

Python เบื้องต้นสำหรับ AWS Boto

ค้นหา IAM ในบริการ

Python เบื้องต้นสำหรับ AWS Boto

คลิก Users

Python เบื้องต้นสำหรับ AWS Boto

แอนิเมชันเพิ่มผู้ใช้

Python เบื้องต้นสำหรับ AWS Boto

แอนิเมชันกรอกชื่อผู้ใช้

Python เบื้องต้นสำหรับ AWS Boto

แอนิเมชันแนบ Policy

Python เบื้องต้นสำหรับ AWS Boto

ภาพหน้าจอตรวจสอบสิทธิ์

Python เบื้องต้นสำหรับ AWS Boto

รับคีย์และ Secret

Python เบื้องต้นสำหรับ AWS Boto

บริการ AWS

S3

Python เบื้องต้นสำหรับ AWS Boto

บริการ AWS

SNS

Python เบื้องต้นสำหรับ AWS Boto

บริการ AWS

Comprehend

Python เบื้องต้นสำหรับ AWS Boto

บริการ AWS

Rekog

Python เบื้องต้นสำหรับ AWS Boto

บริการ AWS

Rest

Python เบื้องต้นสำหรับ AWS Boto

Sam

SAM

Python เบื้องต้นสำหรับ AWS Boto

GetItDone

โปสเตอร์บริการ Get It Done

1 https://data.sandiego.gov/datasets/get-it-done-311/
Python เบื้องต้นสำหรับ AWS Boto

สรุป

  • บริการ AWS = สาธารณูปโภคบ้าน
  • IAM, S3, SNS, Comprehend และ Rekognition
  • AWS Key / Secret
  • เชื่อมต่อกับ S3 โดยใช้ 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()
Python เบื้องต้นสำหรับ AWS Boto

มาฝึกกันเถอะ!

Python เบื้องต้นสำหรับ AWS Boto

Preparing Video For Download...