In my node app I need to allow just some user to be able to download files...
How can I do it with amazon S3?
I am using MulterS3 for upload: https://www.npmjs.com/package/multer-s3
Which ACL should I use in my app?
In my node app I need to allow just some user to be able to download files...
How can I do it with amazon S3?
I am using MulterS3 for upload: https://www.npmjs.com/package/multer-s3
Which ACL should I use in my app?
You need to review S3 bucket policies
an example of policy to grant Read-Only Permission to any User
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"AddPerm",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::examplebucket/*"]
}
]
}
so in your case you want to limit the users who can download so you need to adjust the Principal
and list who can access. You can check Specifying a Principal in a Policy for the different possibilities to list the users.