Access S3 Bucket with s3cmd
การเข้าใช้งาน S3 ผ่าน command prompt ด้วย s3cmd
Last updated
Was this helpful?
การเข้าใช้งาน S3 ผ่าน command prompt ด้วย s3cmd
Last updated
Was this helpful?
ต้องมี bucket สร้างเอาไว้แล้ว
มีการสร้าง subuser และ ให้สิทการเข้าถึง bucket เอาไว้แล้ว ()
ทำการติดตั้ง s3cmd command line
macOS
ubuntu
ใช้ command s3cmd --configure เพื่อใช้ในการ config โดยใส่ข้อมูลดังนี้
Access Key → ที่ได้จากการสร้าง user ()
Secret Key → ที่ได้จากการสร้าง user ()
Default Region -> ให้ใช้เป็น NCP-TH
S3 Endpoint → โดยขึ้นอยู่กับ AZ ของ Bucket ที่สร้าง หากเป็น bkk ให้ใช้ หากเป็น non ให้ใช้
bucket name → ซึ่งได้จากการสร้าง Bucket