I have to connect my AWS Lambda to AWS S3 bucket in order to get custom pickle object. I was able to do that following this AWS resource, and this works fine.
However, I need to explicitly put AWS S3 bucket URL inside AWS lambda in order to import large Python package xgboost into temp directory in AWS Lambda container (like this and this). I was able to make this work, however to do this I need to grant my S3 bucket public access.
My question is whether it is possible to explicitly state AWS S3 URL within AWS Lambda without needing to allow public access to S3 bucket?