title: How can I put condition in serverless.yml file?
body: <p>I am using <code>serverless</code> framework to deploy api gateway. I don't want to apply VPC to every stage in serverless. Is there a way for me to add below configuration based on <code>stage</code> name?</p>
  <pre><code>provider:
    name: aws
    runtime: nodejs12.x
  
  ...
  
  endpointType: PRIVATE
  vpcEndpointIds:
      -  'Fn::ImportValue': 'api-gateway-endpoint'
  resourcePolicy:
      - Effect: Deny
  ...
  </code></pre>