Interaction
S3 Stands for Simple Storage Service
URL Format:
http://BUCKET_NAME.s3.DOMAIN.com or https://BUCKET_NAME.s3.DOMAIN.comhttp://s3.DOMAIN.com/BUCKET_NAMETools: awscli
Interaction:
1) List contents inside S3 Bucket
aws --endpoint-url=http://s3.DOMAIN.com s3 ls 2) List contents inside the specified bucket
aws --endpoint-url=http://s3.DOMAIN.com s3 ls s3://BUCKET_NAME 3) Downloads any files within the specified bucket
aws --endpoint-url=http://s3.DOMAIN.com s3 sync s3://BUCKET_NAME . In order to interact in any way with a cloud service, first we have to authenticate with it.
awscli looks for ~/.aws/credentials file to locate the keys in order to authenticate to the cloud services.
TIP:
In some cases, we can use any random credentials to authenticate by simply typing: aws configure
Last updated