“Subir imagen a S3 Python” Código de respuesta

Subir el archivo a S3 Python

# easy way
import boto3

s3 = boto3.resource(
    service_name='s3',
    region_name='Your region',
    aws_access_key_id='Your id',
    aws_secret_access_key="Your Key")

bucket = s3.Bucket('your bucket name')

bucket.upload_file(Filename='temp.csv', Key='temp.csv')
# file path __________↑                 ↑ 
# (which you want to upload)            |
#                                       |______path (where you want to upload inside bucket)

Darkstar

Subir imagen a S3 Python

The AWS SDK for Python provides a pair of methods to upload a file to an S3 bucket. The upload_file method accepts a file name, a bucket name, and an object name.
Frightened Ferret

Respuestas similares a “Subir imagen a S3 Python”

Preguntas similares a “Subir imagen a S3 Python”

Más respuestas relacionadas con “Subir imagen a S3 Python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código