{"_id":"@ashnazg/precipitator","_rev":"3-0da31d728d8f12ea277c999d9ef9ce23","name":"@ashnazg/precipitator","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@ashnazg/precipitator","version":"0.0.1","description":"a higher level wrapper for cloud provisioning APIs","main":"precipitator.js","repository":{"type":"git","url":"q:/git/me/projects.git"},"repository_path":"ashnazg-npm/precipitator","author":{"name":"Alexander Mathews xander@ashnazg.com"},"license":"MIT","dependencies":{"@ashnazg/args":"^2.1.1","@ashnazg/async-walk":"^1.0.0","@ashnazg/ssh":"^0.1.0","@ashnazg/utils":"^0.0.1","aws-sdk":"^2.773.0","q":"^1.5.1"},"_id":"@ashnazg/precipitator@0.0.1","dist":{"shasum":"ce0f777d601539537c98ad78aa910e395a8448ae","integrity":"sha512-jGhgsIuq3V8OfwXxmW62VCRxOAtEpt8yLzYljadc8ihPsxbYr940gvbd7ZUgDw9YT63xsh8x+7Hzw4b/aR+vbA==","tarball":"https://registry.npmjs.org/@ashnazg/precipitator/-/precipitator-0.0.1.tgz","fileCount":6,"unpackedSize":13408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfn0eyCRA9TVsSAnZWagAAWvwP/1+2/cJtLBt6VyWmi08f\n+Fk5BeAclIsqLhJCCPd21kCHnfcHjaVjeZWMeaNTKBIgGR94ao+pdNWyNizV\nqKtmZ7NDnFcfvCF9i2ZbURMwK3OlfP/Qee6cLcs7pOTq6sOeFiDNALtDsaP1\nslFPXjbQy6QOd4ikKiQWd/S70JMrWdiCzfF7o64aW85KDrbRDgpyL4eP+eX/\nMeFOzgb9dZLjmO8Dan8zQyhL+ARAv+qLILl+h8UZKwmJHr73SFaKIM2rqO8h\nA/AL7e23/Jed0dWvg5xkwMaTkES+BHp8omue6zlSYirfqI5W/GN62WDWbVld\nlhuHBODj7rFmfMDmXDFbHJabtZrqS6PXT5f6ddrKXQleO/AFlM9XeDHJjJTg\ntGjs8tGwwdPS+HU49bsMIYQ/FN+C6RBXocZaV0qfuvmGC175LvKXIB9F9K0m\n71uxxg2Tjet7rjiYqxwuFgyBAZXF6/6bk6Pw3EKI4slwpSVI1Xxk0U1QhDuk\ngUxX4vuHRh3NCEknsJf6W1TulwkQl4WlhQ7ngdh7fIZZiVKLk3jgBO49V4we\n2tcxvW4rfiehvR3P7Y9bIzB/Swgl3ETEnpHusuxWdn+pauz7xft25ZepEWaH\n4vy6LcqtxEdZukmdT52c5dr9BASshGKmoBxUm4/Gupgc8f39foV1rrIk7IwO\n91Sp\r\n=LvTU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPbPU2BwGMfBkshMZJ1gZEHKBEuF503DgrlB/xIZosDAiEA/JvWX/Aq0lkjxxmRGhB4r/xf8WxCMygtzphFXi0S4jU="}]},"maintainers":[{"name":"xander","email":"xander@ashnazg.com"}],"_npmUser":{"name":"xander","email":"xander@ashnazg.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/precipitator_0.0.1_1604274097829_0.7315373643968357"},"_hasShrinkwrap":false},"0.0.2":{"name":"@ashnazg/precipitator","version":"0.0.2","description":"a higher level wrapper for cloud provisioning APIs","main":"precipitator.js","repository":{"type":"git","url":"q:/git/me/projects.git"},"repository_path":"ashnazg-npm/precipitator","author":{"name":"Alexander Mathews xander@ashnazg.com"},"license":"MIT","dependencies":{"@ashnazg/args":"^2.1.1","@ashnazg/async-walk":"^1.0.0","@ashnazg/ssh":"^0.1.1","@ashnazg/utils":"^0.0.1","aws-sdk":"^2.773.0","q":"^1.5.1"},"_id":"@ashnazg/precipitator@0.0.2","dist":{"shasum":"327b8d063025bd322db5c47188557441a09e4659","integrity":"sha512-Ms7TcHfmQHibr56y548VFMjesHqN2e+PjmRS3W152mrbTo/DGxsfXgP1GPH9w9GA/d8IrbAnle40OPAvN1D4tA==","tarball":"https://registry.npmjs.org/@ashnazg/precipitator/-/precipitator-0.0.2.tgz","fileCount":7,"unpackedSize":12279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfn5NUCRA9TVsSAnZWagAAhnMP/0IcTZ2xESlcViKMv8f5\niiuwIK+CCTRjVNYLEokeXxWWBskeWqZ3msfUOVFCVlF5WVuwOUmlQsFW1sVt\n9Sl+CBqVs/oEtHFXD47Lu/PbDkbJWv4XGV5gE/JJTmRNOaJ2Si4xTpf4MVDz\nF8ZGa17Vk0R84cEwlv1BZssS8dR2+Qq9XoaR2nSwYYPMGR+sKV9SA/ey1vue\nSexst5okLHcotQrx8BjdDNBhQzRfbssK0KVXc343hSTl4GC5ki9sNoI/AayB\nCKtwRwraD0sC2dRuS4zZSXfgXCtMy6y0+9UZDxlLubfpk5pNbNI/Rb674/Hz\nMrUj6Z5x+UQFs5OmTIZGeOEXspcdkAbNTqabI/A9rxCoc7hSZoGpoQjCYKpi\n017iRJKLYNBTe+IVN6x6/ESch7CYgscp0emwUHS2tQSgMrF55FUEVATEXGll\nOZpjL2l6FiGuKHrkgMspM0y9Jd6As6yv/ZjAn9TZ/i+iCxP73iMNFtYUz8wc\nXu3xbaH5yAiwJolDSsrsWVC8ylF8bq/7nat+TyllOp0zXddRmlGzzFtx+c2K\nJwVB7/1uMRlhoUyrmu21sloD9azUszgv+ri+6K9FWgPo7syOim4u9kvKwxWg\nBQwrL5Y1+tk9EuxJwpM+Gt+Np7JpyGO1k0wmp2mPWJESRHIme9/IwFc+wmpc\nQwkz\r\n=DU9W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfFDiba1fJ7r4yDvXC6mSW66U3PJ+jfiZk0kMxghTNoAiEA6xF5OzDdtuWoVrVxF0pYiW58dHWhtjnvmeqWBwGwa0U="}]},"maintainers":[{"name":"xander","email":"xander@ashnazg.com"}],"_npmUser":{"name":"xander","email":"xander@ashnazg.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/precipitator_0.0.2_1604293460175_0.10711842611128897"},"_hasShrinkwrap":false},"0.0.3":{"name":"@ashnazg/precipitator","version":"0.0.3","description":"a higher level wrapper for cloud provisioning APIs","main":"precipitator.js","repository":{"type":"git","url":"q:/git/me/projects.git"},"repository_path":"ashnazg-npm/precipitator","author":{"name":"Alexander Mathews xander@ashnazg.com"},"license":"MIT","dependencies":{"@ashnazg/args":"^2.1.1","@ashnazg/async-walk":"^1.0.0","@ashnazg/ssh":"^0.1.1","@ashnazg/utils":"^0.0.1","aws-sdk":"^2.773.0","q":"^1.5.1"},"_id":"@ashnazg/precipitator@0.0.3","dist":{"shasum":"19429c078478ca02c13b6a6b51ab44b52d078b8e","integrity":"sha512-fQL9MJAt4unZluGReXxjwfB+SmtdsGQ2iPoA4y6J2jy+Z6kggCWaFhc36mzApNIh2McEoHyp+j4JIlfagzA5qQ==","tarball":"https://registry.npmjs.org/@ashnazg/precipitator/-/precipitator-0.0.3.tgz","fileCount":9,"unpackedSize":15426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfn6xeCRA9TVsSAnZWagAAW3EP/idZc3FKwT915l47CS+a\njMqssQr3OmdrLIbnFK3XD6sUjUAQZqtKVTgEPeaBwAa1WJkXoPXUbKx0uad4\nRTjgEqV0TPkXrsI7sVCoM5M3QsImyVsAg5vkOq1tCVoz0pm1az33UUz/pmis\nu2Dm/A9060YkpXVw8X5fjFBYgyjw4+xht9YyPmfJXA7koE/RVdOmxeyzGgcQ\nMXE84GVqtpsymrMsQylCTHQtD5QsaxMQpaTEij8uvOuBQkUEvyZKyPvtt4cf\n57ytCkXUd2ynsxIgjY5FkQq2eBq+0gCXP+ujEukTZnNZhbNNpriELKKOaKK8\nQDGfrf0BYEcGEpBCPhdWcTPP5dlXsw3qOIIWLyC8NVJr6yYreMX3dlrhzTNA\ntkMf5xEzGzu8t9THVk5b+kJTdhQ//Sy8bUyizfqi8Nrb/Rq1JvvzfVbW5ZPE\nPprijl+/cqxr+0XIIhuFHjuqEiQDKVMEj0J6X8W0b0JGzCA2i1e0JzJMAzzx\n9S6UWNs05ez8vVh1vtadwVWDBxVlz2XH0unA0iOkklDb6ovSlEuKAt32R7iG\niMiK3swQMgrGQK2g0Ry01Q9vehZyqfkChfzdcYTcsvRF1jMJUrwfQbBNvC6X\nG+FuMo8+NIGakZkzvaT02sBNJ09/vhKMDyMyiZ5gGE2ZSgbEOFmuiSEChsf9\nehmZ\r\n=Kmir\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMcHMJApOieAvxMkJy1s2udZdeZ0KMQJOXZSkTF4GayAiA5ynl3UkoH3TAXaLhAyD+RaQQh/VVxI+LuMoTjMugasg=="}]},"maintainers":[{"name":"xander","email":"xander@ashnazg.com"}],"_npmUser":{"name":"xander","email":"xander@ashnazg.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/precipitator_0.0.3_1604299869790_0.014614268507549433"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-01T23:41:37.691Z","0.0.1":"2020-11-01T23:41:37.960Z","modified":"2022-04-04T15:45:53.141Z","0.0.2":"2020-11-02T05:04:20.393Z","0.0.3":"2020-11-02T06:51:09.938Z"},"maintainers":[{"name":"xander","email":"xander@ashnazg.com"}],"description":"a higher level wrapper for cloud provisioning APIs","repository":{"type":"git","url":"q:/git/me/projects.git"},"author":{"name":"Alexander Mathews xander@ashnazg.com"},"license":"MIT","readme":"---\ntitle: \"@ashnazg/precipitator\"\nsidebar_label: \"precipitator\"\n---\n<!--\nnote to self: it lives at ~/projects/ashnazg-npm/precipitator/\n-->\n\n## Usage\n```\nvar ec2   = require('@ashnazg/precipitator/create-ec2.js'); // ~/projects/ashnazg-npm/precipitator/create-ec2.js\nvar setup = require('@ashnazg/precipitator/ssh-setup.js');  // ~/projects/ashnazg-npm/precipitator/ssh-setup.js\n\nasync function exampleLibUsage() {\n\tec2.init('us-west-2'); // if you don't init() with your desired region, it'll default to us-west-2\n\n\tvar disk_in_gigs = 8;\n\tvar tags = {Name: 'server label Name'};\n\tvar conf = ec2.createConfig(tags, {\n\t\tInstanceType: 't3a.nano',\n\t\tImageId:  'ami-06e54d05255faf8f6',\n\t\tKeyName: 'xander@ashnazg.com',\n\n\t// SubnetId: 'subnet-6804e831', // if unspecified, AWS will pick from valid subnets\n\t// SecurityGroupIds: ['sg-35137850'], // if unspecified, AWS will use your sg named 'default'\n\n\t// these are the default and can be omitted:\n\t//\tMinCount: 1,\n\t//\tMaxCount: 1\n\t}, disk_in_gigs);\n\n\ttry {\n\t\tvar definition = await ec2.createEC2(conf); // note that Name is just a tag; I'm going to actually set up DNS/certs in a later call.\n\t\tvar {url, ip} = definition;\n\t\t// url is a convenience link to the aws ec2 console with this server selected in the filters.\n\t\t// there's also regurgitations of {conf, opts} so that you can associate the results with the inputs you gave\n\t\t// {create_resp, describe_resp} are the full AWS responses for those api calls; {meta} is a shortcut to just the instance description itself.\n\t} catch (e) {\n\t\tu.die(e);\n\t}\n\ttry {\n\t\tvar sudo_user = 'ubuntu';\n\t\tvar {package_manager} = await setup.waitForReadiness(definition, sudo_user, {tries: 10, retry_delay: 5, initial_delay: 0, verbosity: 0});\n\t\t// waitForReadiness returns the same definition except that it's added 'yum' or 'apt-get' as {package_manager}\n\t} catch (e) {\n\t\tconsole.error(\"could not reach new ec2:\");\n\t\tu.die(e);\n\t}\n}\n```\n","readmeFilename":"README.md"}