Adding AWS S3
Learn how to configure storage with AWS Amplify CLI.
We'll cover the following
- Introduction to AWS S3
- Getting started
- Step 1: Run the amplify add storage command
- Step 2: Select Content
- Step 3: Enter a name
- Step 4: Enter your bucket name
- Step 5: Select the access level of the bucket
- Step 6: Select the access level for authenticated users
- Step 7: Select the access level for guest users
- Step 8: Lambda trigger
- Step 9: Create an AWS S3 bucket
- Conclusion
Introduction to AWS S3
Now that we have deployed and configured AWS Cognito, we can continue with the backend configuration and deploy an S3 bucket, since our application requires a bucket to save all the images in the chat section. Our WhatsApp clone will resemble the separated buckets that host images and documents.
As part of the AWS Free Tier, you can get started with Amazon S3 for free. Upon sign-up, new AWS customers receive 5GB of Amazon S3 storage in the S3 Standard storage class; 20,000 GET Requests; 2,000 PUT, COPY, POST, or LIST Requests; and 100 GB of Data Transfer Out each month. S3 Standard - General purpose storage for any type of data, typically used for frequently accessed data. First 50 TB / Month $0.023 per GB.
We will save all the images in the S3 bucket and save the key in DynamoDB so we can retrieve the image when we load the message on the frontend.
Get hands-on with 1400+ tech skills courses.