On the AWS Console, choose VPC service and then Endpoints.

Create a new endpoint and associate it to the AWS S3 service

Choose the service com.amazonaws.us-east-1.s3 with type Gateway

Then select the VPC and Route Table.

Then select the access level (full or custom) and it will work.
Access AWS S3 from Lambda within the VPC
|
