How to set Amazon S3 bucket files permission to be only viewable? - amazon-s3

I am streaming videos from an Amazon S3 bucket using JWplayer to my website, but it has public access so everyone can view the videos and the problem is that anyone can also download the videos using that link.
How to give ACL permission to only view uploaded videos?

Related

Amplify logged in users cannot access S3 files using the Auth_Role

I have a small question regarding Cognito authentication and S3. I tried to connect external S3 and Cognito instances to Amplify (Not managed by Amplify, I created manually). In the system, we can upload files to the S3 bucket and view them. I use Amplify JS's Storage class to do all this. The thing that got me confused is that when I give S3 permissions to the Cognito Auth_Role, my users cannot upload or view any files even-though they are logged into the system. When I give permission to the Unauth_Role, it works. Any idea why?

How to get an image stored on google cloud Platform bucket?

I want to download the images stored on my Google Cloud bucket and display all the images on my react native app.
I have stored the images on a bucket by encrypting them using my key.
I want to decrypt my images and then display them to the users.
I want the help to react native code to connect with Google Cloud Platform and retrieve my images.
For reading the files from the bucket, you have to set the bucket publicly accessible. Go to Storage, click on the 3 dots on the right of your bucket line, select Edit Bucket Permission. Then, click on Add Member and add allUsers with the role storage object viewer.
Now all your files in the bucket are publicly accessible. The URL of your files will be:
https://storage.googleapis.com/myBucket/path/to/file
Then, decrypt the file on with your key.

How to upload Instagram fetch image to AWS S3?

I got the Instagram all images but I have to upload/save selected image to Amazon S3 server. I have created bucket at AWS and I am using aws-sdk-php in cakephp 3.6. Please help!
It sounds like you event haven't any code yet.
Here you have some reference implementation from amazon itself.
https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/php/example_code/s3

How to upload videos on Youtube using AWS S3 as Video Source

I have a VIDEO CMS hosted over AWS EC2 where user can upload videos and later share on Facebook and Youtube. I push videos to S3 after uploading and delete it from EC2.
Now I want to use S3 to share videos to both social networks. However FB provides a way to upload videos directly from S3 but Youtubes need video to be physically present on server.
I have not found any solution yet.
Thanks in advance for your help.
If it is not compulsory your video should be shared on youtube from amazon S3, you can directly upload your video to youtube by using youtube api, either javascript or other backend you are using. It will be much easier way. S3 doesnot provide any way to upload your video on youtube.
Also you will have to manually check for new videos added to s3 and need to manually upload to youtube.
You will have to upload video on youtbe just after user/ you uploads on EC2. It will be dynamic.
You can get Youtube vidoe insert api resource from here
https://developers.google.com/youtube/v3/docs/videos/insert

s3 bucket images can access via website only

I am new to S3 , i created a bucket there and uploaded the images.
I want to access that images via my website only. onlybody able to access that bucket.
Please tell me how we can proceed on the same ?