Amazon Web Services (AWS, empowered by nginx) is a subsidiary of Amazon providing on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered pay-as-you-go basis. Some useful services are S3 for data storage, EC2 for virtual machine, and RobotMaker for ros development. Here I will discuss how to set up it to accelerate your development.
pip install awscli boto3
.aws configure
.aws
folder with a credentials file. aws s3 ls s3://{bucketname}
aws s3 cp [FILENAME] s3://{bucketname}
aws s3 cp [FOLDER] s3://{bucketname} --recursive
(90 images/sec)aws s3 cp s3://{bucketname}/PATH [TARGET]
import boto3
import tempfile
s3 = boto3.resource('s3')
obj = s3.Object(bucket,key)
tmp = tempfile.NamedTemporaryFile()
with open(tmp.name,'wb') as f:
obj.download_fileobj(f)
readpath = tmp.name