{"_id":"@delkopiso/serverless-vpc-discovery","_rev":"2-93556b02ec1e2d96792667c71fc738ab","name":"@delkopiso/serverless-vpc-discovery","dist-tags":{"latest":"2.1.0"},"versions":{"2.0.0":{"name":"@delkopiso/serverless-vpc-discovery","version":"2.0.0","engines":{"node":">=4.0"},"description":"Serverless Plugin to modify VPC values","author":{"name":"Amplify Education Inc"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/delkopiso/serverless-vpc-discovery.git"},"keywords":["serverless discovery VPC","serverless plugins","api gateway","lambda","aws","VPC","aws lambda","amazon","amazon web services","serverless.com"],"main":"index.js","bin":{},"scripts":{"test":"node ./node_modules/istanbul/lib/cli.js cover _mocha -- -R spec && node ./node_modules/istanbul/lib/cli.js check-coverage --line 70 coverage/coverage.json","lint":"eslint ."},"devDependencies":{"aws-sdk-mock":"^1.6.1","chai":"^3.5.0","eslint":"^3.18.0","eslint-config-airbnb":"^14.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.3","istanbul":"^0.4.5","mocha":"^2.2.5"},"dependencies":{"aws-sdk":"^2.2.33","underscore":"^1.8.3"},"gitHead":"555b6fb8c1f8d6bfc17cdff0e4e62e13d6403487","bugs":{"url":"https://github.com/delkopiso/serverless-vpc-discovery/issues"},"homepage":"https://github.com/delkopiso/serverless-vpc-discovery#readme","_id":"@delkopiso/serverless-vpc-discovery@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.11.2","_npmUser":{"name":"delkopiso","email":"kuzokwe@gmail.com"},"dist":{"integrity":"sha512-KpVRdaF63Okb0l/y+/yU7ixzHOANCwJ1aoA9nfxRQLn9ViKveK860gWpiY5CKlq4fKm1sVmJ2FH6WhtE0kFtuA==","shasum":"57fecd37b9ecc2139cd422c10b7bd500028f6688","tarball":"https://registry.npmjs.org/@delkopiso/serverless-vpc-discovery/-/serverless-vpc-discovery-2.0.0.tgz","fileCount":11,"unpackedSize":18679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyK3qCRA9TVsSAnZWagAANqcP/iG//bfMLRwsaGJVjAA5\nE7S+eYMAy452C5YETLwqXV4lFHyiQjolH/xJvjkS06YPpO6cHfJTjdYPXfR7\nqWToaflppk9ADdchRVQDPG9mgpTcDLUVZUSPG6EIjeZm9PH9ohA4BOokmw/W\n2Nd67tGJf9hDQ/yC43KaYcmjlP36YidKFIH8VJPsrS4rJ6i9h9UtY9Ib86oq\n7uHakqtHspd58cM5tiJJl4dCQuJK8pj1UwnoNtuIxJxRjctK9WOG5KSkCwVr\nd7TJRyxz5SWoSavTNRVLAA5t09CsCPVrDuKj4MGsirTbEZamhPfi6EllXJ+V\nQF/qwYktVpOzYvRQhcidc+aO3ua3SHRx2+egUNNu2FQj5mXdbRy4JXSs6F5s\nK3Oaa/TWYuS1HRwN4COFePql3pwPebQmCTxUrHyc7Df/d3aTYdnBeAvc2pfI\ndGrAF9VWvt4aThZsvYbb4pkYHOF2VXm73q1HOa88a+2WcEiHYroROq4w77EK\nvR8ek8O3ldDatob3Z3MRquPJVSWg/m0gGz58qaXJnx6WLexJYDfL6F+/ahGs\nuJL00YL2NG9LbdfIYtNZoHk2b9wz/IQ0mr9nUnF+IolDXRGVWHJBR1AXlv4M\ncQfLmwcFS/LdZ2vkVamwS+K8glVkQPx+x55DvwxLHge8l980w3IgbR8LBUT2\nNYWl\r\n=h0ge\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA7EaBYUjyf766LfpdDEMw2rZz5aqd2B894rTbuDTMGgIgJfDvQl/vH4UaQntVPB/o1uQvwOCu9wVfIbJ30xwUWj4="}]},"maintainers":[{"name":"delkopiso","email":"kuzokwe@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serverless-vpc-discovery_2.0.0_1539878377939_0.07441535013032285"},"_hasShrinkwrap":false},"2.1.0":{"name":"@delkopiso/serverless-vpc-discovery","version":"2.1.0","engines":{"node":">=4.0"},"description":"Serverless Plugin to modify VPC values","author":{"name":"Amplify Education Inc"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/delkopiso/serverless-vpc-discovery.git"},"keywords":["serverless discovery VPC","serverless plugins","api gateway","lambda","aws","VPC","aws lambda","amazon","amazon web services","serverless.com"],"main":"index.js","scripts":{"test":"nyc mocha -- -R spec && nyc check-coverage --lines 70","lint":"eslint ."},"devDependencies":{"aws-sdk-mock":"^5.1.0","chai":"^4.2.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.20.2","mocha":"^7.1.1","nyc":"^15.0.1"},"dependencies":{"aws-sdk":"^2.2.33","underscore":"^1.8.3"},"gitHead":"5899171b0cbc1ba23702abddaa2a5998fa3a37a1","bugs":{"url":"https://github.com/delkopiso/serverless-vpc-discovery/issues"},"homepage":"https://github.com/delkopiso/serverless-vpc-discovery#readme","_id":"@delkopiso/serverless-vpc-discovery@2.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ejQMAVoVTjjBu2+maW4fFOw4EbqiKAOnwB37E1GeahzyYsVi/iWEdGDzUv2fgAijyTpb35k6xXC9cFimS0Op9A==","shasum":"97cca18b3d009daa9f4fdc5457e36462a590fd8d","tarball":"https://registry.npmjs.org/@delkopiso/serverless-vpc-discovery/-/serverless-vpc-discovery-2.1.0.tgz","fileCount":12,"unpackedSize":18951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemd0RCRA9TVsSAnZWagAAXCAP/2MvJtc647f4E+iQlHwr\nIf7bot0oueMt+vSUNcBg/SUCKNmHEMYF9eF1Ln0zMfI/DwTGG4V0SGKy7lij\n8Pxj9U36mMmQKAMn/G3C4r2KyBBLpz//FHv1fh1ebxzVmZMKIaPUqriE1sLU\n0DFfO8PbZ1VQnVPGrASgCFg8Pby+Ugnsn1erkmCs3Tu8H+VUTjEQgMRMSPIG\ne5NIeiAluxBGEebkAszGFKBlXL/LcTRgxEWFLh3nXncbdfZYOWGDNoJrv7JL\n3SCrXZSBJ5pkA4Q33Hm3Yo00MHxSopjaLPKApu7eJIGZnO/8PVM4eYlPLuW6\nbYJJ2n/3JAG9GbV/mQyW+TD4f//PKY8XraXkeSniSXn2CuZqbpF7lOX0N5aA\n2hxegkFohaHobBMM7Wd8dsVcyFVKYHThrROpMHYTeI27AN2p4yV1kBkYkRVs\nUGNrzVyPNBHuF231I3BVbhNEacN0J11Dd+GjACaisleCk9OZ6RdQqymQg4E1\nij1qMKLUhKhnjlbaRHdSLGqx83e2cEi7toEK20pGu9HbAVChn2+y8KKh1+8C\nNzZfJkiniErnfuLeQ0ujH5hOSbK+ozCSGl5774LHpstTg6URph2x7HUC4FXm\nIa1BoXIDh4OCgmgHfHqaCRck+5/d8IaWDcydK1OtXqqVbaKW1UyQAuW9PggW\naqiO\r\n=8PZF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvGTGCBQVkjLOseGgJSCmowjozNEgVrxmP6it/fF+9CQIhAIoqly91cdDtfX7THyFk0d7s+3oxVip1efDdHarfE8b9"}]},"maintainers":[{"name":"delkopiso","email":"kuzokwe@gmail.com"}],"_npmUser":{"name":"delkopiso","email":"kuzokwe@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serverless-vpc-discovery_2.1.0_1587141905074_0.7461447976208264"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-18T15:59:37.783Z","2.0.0":"2018-10-18T15:59:38.028Z","modified":"2022-04-05T03:42:19.137Z","2.1.0":"2020-04-17T16:45:05.201Z"},"maintainers":[{"name":"delkopiso","email":"kuzokwe@gmail.com"}],"description":"Serverless Plugin to modify VPC values","homepage":"https://github.com/delkopiso/serverless-vpc-discovery#readme","keywords":["serverless discovery VPC","serverless plugins","api gateway","lambda","aws","VPC","aws lambda","amazon","amazon web services","serverless.com"],"repository":{"type":"git","url":"git+https://github.com/delkopiso/serverless-vpc-discovery.git"},"author":{"name":"Amplify Education Inc"},"bugs":{"url":"https://github.com/delkopiso/serverless-vpc-discovery/issues"},"license":"MIT","readme":"# serverless-vpc-discovery\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![Build Status](https://github.com/delkopiso/serverless-vpc-discovery/workflows/Test/badge.svg)](https://github.com/delkopiso/serverless-vpc-discovery/actions?query=workflow%3ATest)\n[![npm version](https://badge.fury.io/js/%40delkopiso%2Fserverless-vpc-discovery.svg)](https://badge.fury.io/js/%40delkopiso%2Fserverless-vpc-discovery)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/delkopiso/serverless-vpc-discovery/master/LICENSE)\n\nThe vpc discovery plugin takes the given vpc, subnet, and security group names in the serverless file to setup the vpc configuration for the lambda.\n\n# About Amplify\nAmplify builds innovative and compelling digital educational products that empower teachers and students across the country. We have a long history as the leading innovator in K-12 education - and have been described as the best tech company in education and the best education company in tech. While others try to shrink the learning experience into the technology, we use technology to expand what is possible in real classrooms with real students and teachers.\n\nLearn more at https://www.amplify.com\n\n# Getting Started\n\n## Prerequisites\nMake sure you have the following installed before starting:\n* [nodejs](https://nodejs.org/en/download/)\n* [npm](https://www.npmjs.com/get-npm?utm_source=house&utm_medium=homepage&utm_campaign=free%20orgs&utm_term=Install%20npm)\n* [serverless](https://serverless.com/framework/docs/providers/aws/guide/installation/)\n\nAlso allow the lambda to have the following IAM permissions:\n* ec2:CreateNetworkInterface\n* ec2:DescribeNetworkInterfaces\n* ec2:DeleteNetworkInterface\n\n## Installation\nRun:\n```\n# From npm (recommended)\nnpm install serverless-vpc-discovery\n\n# From github\nnpm install https://github.com/amplify-education/serverless-vpc-discovery.git\n```\nThen make the following edits to your serverless.yaml file:\n```yaml\nplugins:\n  - serverless-vpc-discovery\n\ncustom:\n  vpc:\n    vpcName: '${opt:env}'\n    subnetNames:\n      - '${opt:env}_NAME OF SUBNET'\n    securityGroupNames:\n      - '${opt:env}_NAME OF SECURITY GROUP'\n```\n> NOTE: The naming pattern we used here was building off the vpc name for the subnet and security group by extending it with the the subnet and security group name. This makes it easier to switch to different vpcs by changing the environment variable in the command line\n\n## Running Tests\nTo run the test:\n```\nnpm test\n```\nAll tests should pass.\n\nIf there is an error update the node_module inside the serverless-vpc-discovery folder:\n```\nnpm install\n```\n\n## Deploying with the plugin\nWhen deploying run:\n```\nserverless deploy --env 'VPC Name'\n```\n\nAnd that should be it! Good Luck!\n\n# How it Works\n\nThe vpc, subnets, and security groups are found by filtering based on a specified tag name.\nVpc, security groups, and subnets are found under the tag name `tag:Name`.\n\nThe vpc is found first as it is used to find the subnets and security groups. Once all of the subnets and security groups are found the serverless service provider creates a vpc object and stores the subnets and security groups.\n\n# Responsible Disclosure\nIf you have any security issue to report, contact project maintainers privately.\nYou can reach us at <github@amplify.com>\n\n# Contributing\nWe welcome pull requests! For your pull request to be accepted smoothly, we suggest that you:\n1. For any sizable change, first open a GitHub issue to discuss your idea.\n2. Create a pull request.  Explain why you want to make the change and what it’s for.\nWe’ll try to answer any PR’s promptly.\n","readmeFilename":"README.md"}