- Newest
- Most votes
- Most comments
Based on the information provided, it seems that the issue you're experiencing with the newly uploaded folder is likely related to the object permissions rather than the bucket settings. Even though your bucket is set to have public read access, individual objects within the bucket can have their own access settings.
Here are a few things to check and potential solutions:
-
Object ACL (Access Control List): When you uploaded the new folder and its contents, the objects might have been uploaded with default private permissions. You need to ensure that the individual objects, especially the .html file, have public read access.
-
Bucket Policy vs. Object Permissions: While your bucket may have a policy allowing public read access, individual objects can still be restricted. Make sure that your bucket policy is correctly applied and that it covers all objects, including newly added ones.
-
Block Public Access Settings: Check if there have been any changes to the block public access settings at the bucket or account level. These settings can override other permissions.
-
Upload Process: If you used a different method to upload this new folder compared to your previous uploads, it might have affected the default permissions applied to the objects.
To resolve this issue:
- In the S3 console, navigate to the specific object (your .html file) that's not accessible.
- Check its permissions and ensure it's set to "Public (read-only)" or grant public read access.
- If the option to make the object public is disabled, review your bucket's settings to ensure that individual objects can be made public.
- If necessary, you can modify the bucket policy to explicitly allow public read access to all objects, including future uploads.
Remember, when dealing with public access, always consider security implications and ensure you're only making public the content that absolutely needs to be publicly accessible.
Sources
Grant public access to individual bucket objects in Amazon Lightsail - Amazon Lightsail
How to make bucket or objects public? | AWS re:Post
I get Access Denied while load images from buckets | AWS re:Post
You only have list on objects for everyone not read. Without read no one can download the objects.
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 4 months ago