Category: boto3

Problem

Upload files to AWS S3 with boto3.

Solution

  s3.upload_file("local.pdf", "my-bucket", "docs/file.pdf")
  

Notes

  • Adapt variable names and paths to your project
  • Add error handling for production use
  • See related chapters in the Learning Path