If you want to give your users temporary access to a private S3 file without giving them access to the AWS console, you will need to generate an S3 presigned URL of your target file.
To generate and test the S3 presigned URL, you can try the code below.
Continue reading How to generate S3 presigned URL using boto3 and Python