AWS S3
Last updated
Last updated
See
If the AWS CLI is not installed on your EC2 instance, follow these steps to install it.
Use the following command to configure the AWS CLI, entering your AWS access key and region information.
You will need to provide the following information:
AWS Access Key ID
AWS Secret Access Key
Default region name (e.g. ap-southeast-1)
Default output format (you can choose json)
Use the aws s3 sync
command to synchronize files from the S3 bucket to your EC2 instance.
Example:Assuming you want to sync files from CHENGDU80 topic S3 bucket named chengdu80-topic to the /home/ec2-user/myfiles
directory on your EC2 instance, you would run:
After synchronization is complete, you can use the ls
command to check the target directory and confirm that files have been successfully downloaded.
Amazon S3 managerment Console
In the Bucket list, choose the name of the bucket that you want to upload your object to.
On the Overview tab for your bucket, choose Upload or Get Started.
To choose the file to upload, in the Upload dialog box, choose Add files.
Click the Upload button to finish uploading.
You've successfully uploaded an object to your bucket.
Amazon S3 managerment Console
In the Buckets list, choose the name of the bucket that you want to delete an object from.
In the Name list, select the check box for the object that you want to delete,and then choose Delete.
In the Delete objects dialog box, verify the name of the object, and type permanently delete.
Click the Delete objects button to complete the deletion
You've successfully deleted an object to your bucket.
Amazon S3 managerment Console
In the Buckets list, choose the name of the bucket that you want to download an object from.
In the Name list, select the check box for the object that you want to download.
Click the Download button to start the download task.
You've successfully downloaded an object to your bucket.