Set up file and image uploads to S3

Is the fist post in the above
https://meta.discourse.org/t/set-up-file-and-image-uploads-to-s3
is still valid guide that allows admins to make it? If no, is there any other place where 2024 correct S3 guide is located? It is said that this is official and supported by Discource team.

we implemented it as in the above and and images are broken on discourse instance although they are being uploaded to S3.

Our flow

  1. Set up the S3 bucket itself and the policy in S3 as in the above (all steps are accurately followed)

  2. Set up the env in app.yml and in admin (identical) as in the above

  3. launcher rebuild app

  4. any CDN is NOT used at all as our understanding is that it is optional and it should work without CDN.

Result:

  1. Images are being uploaded to bucket by discourse
  2. links in posts are correctly replaced by Discourse to amazon links like
    xxx-bucket.s3.dualstack.us-east-1.amazonaws.com/original/1X/a1b21eb5de071799d4b5e5215619d11d28602dfe.jpeg
  3. links are not accessible (assumed because of the S3 policy in official guide)

Assumed change for the official S3 policy in guide . Principal: This policy does not specify a Principal, which means it applies to whoever has been authenticated with the right permissions. If to allow anonymous (public) access, we need to specify "Principal": "*". That also might not be good solution as it makes bucket public.
this is assumption as we appreciate if someone will update the guide to make it correct in 2024