title: using custom vpc instead of default vpc in aws lambda serverless framework
body: <p>There are two vpcs(default that comes when an account is created and another one created by me) in my aws account.i wanted to deploy my lambda function in custom created vpc rather than in default vpc </p>
  
  <pre><code>  vpc:
      subnetIds:
        - subnet-123456
        - subnet-452345
      securityGroupIds:
        - sg-ff555144
        - sg-edfe5566
  </code></pre>
  
  <p>above creates the lambda function in default vpc </p>
  
  <p>serverless <a href="https://serverless.com/framework/docs/providers/aws/guide/functions#vpc-configuration" rel="nofollow noreferrer">docs</a> doesn't contain the way of specifying custom  vpc in serverless.yml</p>