Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

upload file to s3

# 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)

Comment

upload on s3


aws s3 cp --recursive --acl public-read ./www s3://YourBucketNAme/
Comment

PREVIOUS NEXT
Code Example
Shell :: linux nano editor 
Shell :: add environment variable linux 
Shell :: heroku docker 
Shell :: touch 
Shell :: phoenix liveview setup 
Shell :: redirect stderr to file linux 
Shell :: update centos kernel version yum 
Shell :: mv command in linux 
Shell :: how to connect raspberry pi to laptop using hdmi 
Shell :: docker 
Shell :: search for substring 
Shell :: scp send file to remote 
Shell :: react native youtube install 
Shell :: datadog without agent 
Shell :: how to uninstall a package in react 
Shell :: remover completamente programa terminal ubuntu 
Shell :: install phoenix 1.6 
Shell :: temeprature ubuntu command line 
Shell :: unity install server cache 
Shell :: terminal make directory and enter in the same time 
Shell :: bash trim binary output 
Shell :: 3.4.5 packet tracer configure trunks 
Shell :: install goaccess 
Shell :: screen record on fedora 
Shell :: how to install mx package manager 
Shell :: cara menghapus kode-kode di terminal linux 
Shell :: compressed-raw-lzma kali install 
Shell :: how to check the requirement of a package in pip 
Shell :: iina github 
Shell :: ispconfig auto installer 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =