# 1) Create Access Key ID and secret access keys'''
User on right top menu => 'My seceurity Credentials=> Access keys=> Create New Access Key=> Download the csv to your local drive
'''
# 2) In your local terminal
aws configure
'''
AWS Access Key ID [None]: aaaaaaaaaaaaaa
AWS Secret Access Key [None]: aaaaaaaaaa
Default region name [None]: eu-west-1
Default output format [None]: json
'''
3. Use AWS SDK in your local terminal
# Create a new Thing
aws iot create-thing --thing-name "YourThingName"# List all your IoT Things
aws iot list-things
# List all your buckts
aws s3 ls
# List the content in one bucket
aws s3 ls s3://greengrass-bucket-pinenuts
# Copy files to your bucket
aws s3 cp myfolder s3://greengrass-bucket-pinenuts --recursive
importboto3# Let's use Amazon S3s3=boto3.resource('s3')# Print out bucket namesforbucketins3.buckets.all():print(bucket.name)# Upload a new filedata=open('test.jpg','rb')s3.Bucket('my-bucket').put_object(Key='test.jpg',Body=data)