I made a aws lambda function that reads s3 data and process. It was working fine (was able to read my bucket or someone else's bucket when I have credentials),
Then, I added VPC for elasticache. After doing some config stuff (vpc), It worked fine with elasticache too.
However, now I cannot read S3 that belongs to someone else!
This used to work with no problem.
var aws = require('aws-sdk');
aws.config.update(...);
var s3 = new aws.S3({...});
s3.listObjects(...)
I can still access my S3 bucket.
So I think, VPC and configs have some weird things are blocking me from making (https?) calls for s3 sdk apis. I thought I allowed all internet accesses. (I can call this lambda from another lambda).
Steps I followed to allow internet accesses was from this link. http://marcelog.github.io/articles/aws_lambda_internet_vpc.html
What would block s3 sdk requests? and how would I fix them?