After you have successfully created an account with Cognito User Pool, we will use that account to upload files to S3 bucket with Amplify in this section.
Press the combination Ctrl+C in terminal or command line
Run the below command at the root of the application you cloned to add storage to the application:
amplify add storage
Select and enter follow the below informations:
? Please select from one of the below mentioned services: Content (Images, audio, video, etc.)
Provide a friendly name for your resource that will be used to label this cateogry in the project: fcjdmsstore
Provide bucket name: fcjdmsstore
Who should have access: Auth users only
What kind of access do you want for Authenticated user? Ấn tổ hợp Ctrl + A
Do you want to add a Lambda Trigger for your S3 Bucket? no
amplify push
npm start
You are done with user authentication and file upload to S3 with Amplify. The S3 bucket has created a protected folder because our application chooses Access Level as protected. To learn more about Access Level, go to the next section.