amplify-education / serverless-vpc-discovery

Serverless plugin for discovering VPC / Subnet / Security Group configuration by name.
MIT License
38 stars 15 forks source link

Optional `custom.vpcDiscovery` #36

Closed rddimon closed 3 years ago

rddimon commented 3 years ago

Make the custom.vpcDiscovery optional. We can specify a vpc config just for a function which we need.

...
functions:
  example1:
    handler: handler.example

  example2:
    handler: handler.example
    vpcDiscovery:
      vpcName: '<vpc name>
      subnetNames:
        - '<name of subnet>'
      securityGroupNames:
        - '<name of security group>'
...

Screen Shot 2020-12-01 at 10 36 38 AM