Skip to content

[Study Log] AWS S3 file download withPython #14

@haonly

Description

@haonly

Image file download from S3 storage with Python

  • S3 Connection
s3 = boto3.resource(
        's3'
        , region_name = REGION_NAME
        , aws_access_key_id = AWS_ACCESS_KEY_ID
        , aws_secret_access_key = AWS_SECRET_ACCESS_KEY
    )
  • download with Object
ret = s3.Object(BUCKET_NAME, os.path.join(base_dir, fileName)).get().get('Body').read()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions