View the S3 Bucket Object
Learn more on AWS S3:
Let’s start on object view.
Step1: Open the test.txt file
- Once you click on the file.
- It will open the object overview screen
- In the overview screen you can the find the object URL.
Step2: Open the Object URL
- Click on the Object URL to view the object.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>X57AJE9SPG64QNJW</RequestId>
<HostId>
bewfDRrlPA7Gph29gt8Qdtp0PG9QEVgaQdCM5kCidzla7Hc7fxCKZIJ3xzZC+hOMmgjMhYzr5b0=
</HostId>
</Error>
- By default, all Amazon S3 buckets and objects are private so on clicking above URL you will get access denied error.
Step3: Unblock Public Access on Bucket Level
- Go to the Bucket list.
- Amazon S3 > Buckets > skillshats-s3-bucket
- Now, go to the Permission tab.
- Click on the Edit
Step4: Allow Public Access
- Uncheck Block all public access checkbox
- Click on Save Changes
Step5: Confirm the Changes
- After clicking on the Save Changes
- It’ll ask to confirm.
- Just type confirm in field and click on Confirm
- Now, objects can be public
Note: Here notice that it says objects can be public and not as objects are public
It means that now you can use various mechanism like bucket policy or Access Control List to allow public access on your object.
Now, You can open the Object URL.
Note: If you are still facing Access Denied. Then also allow the public access on bucket.
Step6: Allow Public Access on Bucket.
- Let’s update the object’s ACL to allow public read using Make public action
- Select the object you would like to make publicly accessible.
- Click on Actions drop-down and click Make public* or Make public using ACL**
- Again, Confirm the Dialog box.
- Now, object is public now. You can access using the object URL.
- Object > object > Object URL
Learn more on AWS S3: