I am creating a PHP site that will store its content files on Amazon S3. Website files (with PHP code) are hosted on a traditional server. Users will register on the site, and after registration and login, they will have access to files on S3.
The question is how to allow only registered users to upload files and not allow all others to download? Should AWS IAM be involved?
I do not want to expire the URL. I want to grant access to files only to a specific user, and I do not want them to share the link with anyone else for some period of time.
In the future, I also want to limit access to files for registered users - depending on the type of user account, the user will have access to various files.
Thanks in advance for the answers!
php amazon-s3 amazon-web-services
Val
source share