My lambdas need access to a DB and SQS. The DB is connected to my default VPC through peering. So I placed my lambdas in the VPC as well. They can access the DB, but timeout when accessing SQS. The security group allows all traffic in and out.
I'm using .NET Core 6 and the AWSSDK.SQS package.
I tried adding a VPC Endpoint to SQS, but when I do that, EC2 instances can no longer communicate with SQS and this causes Elastic Beanstalk deployments to not update deployed EC2 instances. What can I do to give my lambdas access and not break other things?