#s3 Bucket next
26 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
you can get them directly from your bucket via the url https://s3.<region>.amazonaws.com/<bucket>/<key>
Either display it directly via a component or let the user download it. But watch out: directly accessing files from your s3 can be expensive. You might want to use a CDN for it. If you want to stay at aws, use cloudfront as cdn and if you want a better alternative use bunnycdn
ok
This question has been marked as answered! If you have any other questions, feel free to create another post
[Click here](#1253044701150445679 message)
@cobalt dawn for my resume builder app should I save the templates as pdfs or html and css files?
I also went with cloudfront
And would I still be driectly accessing files now?
I would save them as pdfs. If you need data from them, scan them and extract the data. Then save the extracted data inside a database
That depends on the configuration you made for your bucket and cloudfront. Try accessing them in a incognito tab (inside it you won't have cookies and you are not logged in) and see if you can watch them
no, you want to access these files though your cdn (cloudfront). You should've got a https://wdowkdok.cloudfront.net/ domain. Use this and add you filekey to it. For example https://wdowkdok.cloudfront.net/myfilekey.png
if you enter your cloudfront dashboard, you should see your distributions here. You need the green thing
I get access denied
then you may misconfigured something
How do i configure it correctly because I correctly configured the bucket to allow me access
you can use cloudfront OAC for. Like that only the cloudfront distribution can get objects from your s3 and of course others as well, when they request though cloudfront. Take a look at this guide: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
Restrict access to an Amazon S3 origin with Amazon CloudFront origin access control (OAC).
ok
I set everything up does it take some time to apply?
Becasue I have origin access set up and the cloudfront link is still access denied
Yea, it takes some time. But not more than 1 hour (from experience)
Try invalidating the cache from cloudfront