amplify-education / serverless-vpc-discovery

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

Support for multi tagging #43

Closed rddimon closed 3 years ago

rddimon commented 3 years ago

With that feature, we can setup config for a specific tag name or specify a few tags for searching ids.

Example of the new structure:

vpcDiscovery:
    vpcName: '${opt:env}'
    subnets: # optional if `securityGroups` option is specified
      - tagKey: <tag_name>
        tagValues:
          - '${opt:env}_<name of subnet>'
    securityGroups: # optional if `subnets` option is specified
      - tagKey: <tag_name> # optional if `names` option is specified
        tagValues: # optional if `names` option is specified
          - '${opt:env}_<name of subnet>'
      - names: # optional if `tagKey` and `tagValues` are specified
        - '${opt:env}_<name of security group>'

Screen Shot 2020-12-15 at 11 35 19 AM