boto3.resource()
. For example, here we create a ServiceResource object that we can use to connect to S3.Filename
is the name of the local file and Key
is the filename you’ll see in S3).AWS_DEFAULT_REGION
(if you’re using environment vars)region_name
parameter of boto3.resource()
(if you aren’t using environment vars)