Document directory
- Good news
- 1. Create a New buckets
- 2. upload a file/directory
- 3. Set file attributes
- Back to bucket attributes
- Logging Tab
- Specifications Tab
- Lifecycle Tab
S3 is short for Amazon simple storage service, simple storage service, scalable storage in the cloud, and scalable cloud storage.
Good news
AWS free usage tier*
As part of the AWS free usage tier, you can get started with Amazon S3 for free. upon sign-up, new AWS MERs receive 5 GB of Amazon S3 storage, 20,000 GET requests, 2,000 put requests, and 15 GB of data transfer out each month for one year.
In the above text, new users can get 5 GB of storage space for free in the first year, 20 thousand requests per month, and 15 GB of data traffic per month. The excess part is billed. So let's look at it and try it out without any money.
1. Create a New buckets
The bully told me that this bucket is called a bucket, but it is better to think of it as a bucket.
Go to the AWS console, click "create buckets" on the right, and fill in the bucket name and data area to be stored in the pop-up box.
The buckets name is globally unique. The bucket names of all users who use the S3 service cannot have duplicate names, and the names are named based on the URL, because after all, this bucket name will be part of the URL, A user can create up to 100 buckets.
Different Region charges are different. For example, the best region in China is the data center in Tokyo, Japan, which is also the most expensive, but you can only choose him, if you do not select him, you have to accept it slowly.
2. upload a file/directory
That's good. The Lixin bucket is useless.
If you have a bucket, you need to upload something. You can create a directory in the bucket or upload files.
Click Upload and select a file in the pop-up box, and then upload the file.
3. Set file attributes
After uploading a photo, you can set attributes for the file.
Select the file and click Properties or right-click on the top to set properties.
Link:This is the File URL. You can use the address to ask questions, provided that you have set the browsing permission.
Storage:This is how to store data. For example, standard will store your data in many places for backup, while reduced redundancy (less redundant) will not. The more places you put, the more reliable the price is. The former is more expensive.
Server Side Encryption: This should be an encryption option. Do you want to encrypt the data during network transmission? We can see from its link that encrypted transmission is supported.
The permissions tab is available later.And set permissions for anyone who can see and who can change them.
I set everyone to view: https://s3-ap-northeast-1.amazonaws.com/lixin/medium.jpg
Open speed is good, Unicom small pipe, 33 K, 110 ms.
Back to bucket attributes
Files have attributes, as do buckets, and are richer.
Permissions: Permission. You can set who can do it. The simplest thing is that only me can do it, or everyone can view it.
Website
This is interesting. He can turn your bucket into a static website for browsing.
First, upload an HTML file to the bucket.
In fact, select enabled on the website Tab Of the buckets attribute and enter the default document of your web directory. Save OK. Then open the following connection.
Http://lixin.s3-website-ap-northeast-1.amazonaws.com/
Does a webpage pop up.
If you do not like the length of the website, you can get a cname address.
Logging Tab
Enable Logging for your bucket.
Target Bucket: Put the logs in that bucket.
Prefix: Unknown.
Specifications Tab
Inform you of the configuration when something happens to the bucket.
Lifecycle Tab
Set a life cycle for the bucket, and the bucket will not expire.