AWS——Part 03 (AWS Amazon S3 (Scalable Storage in the Cloud)-01 Getting Started)

1 Introduction

2. About Amazon S3

2.1 Introduction

2.1.1 Brief description

  • Amazon S3: Store and retrieve any amount of data from anywhere
  • Amazon S3 is an object storage service that provides industry-leading scalability, data availability, security, and performance.
  • Customers of all sizes and across industries can store and protect any amount of data for virtually any use case, such as data lakes, cloud-native applications and mobile applications. With cost-effective storage classes and easy-to-use management capabilities, you can optimize costs, organize your data, and configure fine-tuned access controls to meet your specific business, enterprise, and compliance requirements.

2.1.2 Detailed introduction

  • Today’s companies need to collect, store, and analyze data simply, securely, and at scale. But today, the fragmentation of data storage portfolios forces enterprises to struggle with complexity and slow innovation. That’s why AWS storage services provide you with One place to store all your data, unparalleled durability, availability, and scalability, and reliable infrastructure tools for compliance, security, and storage management A vast ecosystem of integrated third-party software and system integrator partners , works with your business processes and even enhances them by allowing anyone to securely run their business queries without having to move data to a separate analytics platform. Amazon Simple Storage Service or S3 lets you collect, Store and analyze any amount of data with first durability using the largest global cloud infrastructure.
  • Amazon S3 was built from the ground up to deliver 11 nines of durability. S3 Standard infrequent access and the Amazon Glacier storage class store all data redundantly across three Availability Zones, which are miles apart on separate substations. , and connect to other Easy and the Internet through multiple physically independent fiber paths, write data to a single AWS, the zone is protected even in the event of the loss of the entire Availability Zone, S3 One Zone-IA gives you the option to Store replicable data in a single AWS Availability Zone, trading lower fault tolerance for lower costs, and across all of these storage classes you can replicate a second security and compliance feature. S3 supports three different forms of Encrypts and provides sophisticated integration with tools like AWS Cloud Tracking for auditing Integration with Amazon may see machine learning services that can automatically discover, classify, and protect sensitive data It supports security standards and compliance certifications to help meet Compliance requirements from nearly every regulatory agency Highly regulated organizations like Capital One say they can run more securely in the AWS cloud than in their own data centers A third type of management Amazon S3 offers storage administrators Maximum convenience A flexible storage and management feature set for classifying reporting inventory and analyzing data means you know what data you have so you can make the best decisions and automatically reduce costs.
  • Amazon S3 also works with AWS Lambda so that you can develop workflows without adding dedicated computing resources. Next query Amazon S3 lets you perform complex big data analytics on your data without having to extract and move it to a separate Analysis platform, anyone who knows Sequel can use Amazon Athena to analyze large amounts of unstructured data, using data in Amazon S3 on demand. With Amazon Redshift Spectrum, you can analyze EB-level data in S3 and run coverage Querying of data in S3 and Redshift data warehouses, now you can even query data directly in Amazon Glacier makes archived data useful without the need for recovery. These query and put tools make it easy for anyone to use simple follow-up commands on your entire data set. Automatic scaling means performance stays fast even as application data grows. Finally, in addition to integrations, the partner network works with most AWS Services the same, the Amazon S3 ecosystem includes tens of thousands of consulting system integrators and independent software vendor partners, with more partners joining the AWS Marketplace every month to provide software pre-configured for deployment on the AWS cloud , meaning customers can easily use Amazon S3 with popular services, backup and recovery solutions, archiving, disaster recovery, data lakes and more. No other cloud provider has more partners with pre-integrated solutions, and Amazon S3 is the storage your enterprise needs. Start your AWS journey today with a single location for any data you want to manage, manage, and analyze.

2.2 Amazon S3 Benefits and Features

  • Data Performance and Durability
    Scale storage resources to meet changing needs without upfront investments or resource procurement cycles. Your data is available when needed and protected against failures, errors and threats.
  • Security, Compliance, and Audit
    Protect data from unauthorized access using encryption and access management capabilities. S3 also maintains compliance programs and supports numerous auditing capabilities.
  • Flexible Storage Options
    Save money without sacrificing performance. Store data across a variety of cost-effective storage classes designed for specific use cases and supporting different levels of data access.
  • Granular Data Control
    Classify, manage, and report on data using a variety of storage management features. Log activity, define alerts, and automate workflows without the need to manage additional infrastructure.

2.3

3. Create an S3 bucket

3.1 Create bucket

  • as follows:
    Insert image description here
    Insert image description here
    Insert image description here
    Insert image description here

3.2 Modify access rights

  • The above creations are all default. If you want to modify the access rights, you can also modify them after creation, as follows:
    Insert image description here

4. Simple and practical

4.1 Upload image files

  • Upload a photo at will, as follows:
    Insert image description here
    Insert image description here
    Insert image description here
    Insert image description here

4.2 Access image files

  • Copy the object URL and access it, as follows:
    Insert image description here

4.3 Cases where access is denied

  • If access is denied, you need to modify the permissions, as follows:
    Insert image description here
  • The solution is as follows

4.3.1 Access files using pre-signed URLs

  • Create a pre-signed URL as follows
    Insert image description here
    Insert image description here

  • Access, as follows:
    Insert image description here
    Insert image description here

4.3.2 Use ACL to make it public

  • Create a bucket and enable ACL
    Insert image description here
  • Block public access (bucket settings), modify to public
    Insert image description here
    Insert image description here
  • Then upload the image and set it to public using ACL
    Insert image description here
    Insert image description here
    Insert image description here
    Insert image description here
  • Then copy the object URL and access the file as follows:
    Insert image description here
    Insert image description here

4.3.3 Add bucket policy

5. Turn on version control

  • As follows, turn on
    Insert image description here
  • After opening, if you modify the file and upload it again, you can view the historical version of the file
    Insert image description here

6. Create replication rules

  • Use replication rules to define the options you want Amazon S3 to apply during replication, such as server-side encryption, replica ownership, and transferring replicas to other storage classes.
  • Create a replication rule as follows:
    Insert image description here
    Insert image description here
    Insert image description here
    Insert image description here
  • Test to see the effect, as follows:
    Insert image description here
    Insert image description here

7. Host a static website

7.1 Refer to the official website

7.2 Configure index documents

  • as follows:
    Insert image description here
    Insert image description here

7.3 Configure custom error documents

  • as follows:
    Insert image description here

Insert image description here

7.4 Upload index files and custom error files

  • as follows:
    Insert image description here

7.5 Enable static website hosting

  • as follows:
    Insert image description here
    Insert image description here
    Insert image description here

7.6 Access pages

7.6.1 Accessing index files

  • Visit index.html as follows:
    http://susu-aws-bucket-2.s3-website-eu-west-1.amazonaws.com
    
    或
    
    http://susu-aws-bucket-2.s3-website-eu-west-1.amazonaws.com/index.html
    
    Insert image description here

7.6.2 Accessing custom error files

  • as follows:
    http://susu-aws-bucket-2.s3-website-eu-west-1.amazonaws.com/404.html
    
    Insert image description here

7.6.3 Upload other static pages and access them

  • Upload index2.html as follows:
    Insert image description here
  • Visit index2.html as follows:
    http://susu-aws-bucket-2.s3-website-eu-west-1.amazonaws.com/index2.html
    
    Insert image description here
  • Automatically trigger access 404.html. If the page being accessed does not exist, it will be triggered, as follows:
    Insert image description here

7.6.4 Access other image files through pages

  • as follows:
<img src="https://susu-aws-bucket-2.s3.eu-west-1.amazonaws.com/DSC07574.jpg"/>

Or, directly

 <img src="DSC07574.jpg"/>

Insert image description here
Insert image description here

8. Public policy on disabling ACLs

Guess you like

Origin blog.csdn.net/suixinfeixiangfei/article/details/132044008