How can I configure VPC in Jets app? My RDS is under a VPC

How can I configure VPC in Jets app? My RDS is under a VPC. Also, how can I configure other parameters like memory?

You’re looking for the vpc_config of the lambda function. http://rubyonjets.com/docs/function-properties/

Found that for VPC to work:

  • The VPC subnet needs to be private subnet with a NAT
  • The security group needs to allow inbound access to the subnets CIDR range

Another option that doesn’t require a NAT is to enable VPC endpoint. See:

https://community.rubyonjets.com/t/jets-application-timing-out-on-describe-stacks-at-lib-jets-aws-info-rb-76/434/2