This module installs an
.ebextensions config file that will authenticate
your Elastic Beanstalk environments to npm.
The config file will do this by creating an
.npmrc that reads the value of the
NPM_TOKEN environment variable. This
.npmrc file will only be created in
EB, letting you use whatever authentication strategy you like locally. (The
By the way I was really hoping that EB would automatically read
per this Stack Overflow answer but that didn't work for me
npm install eb-authenticate-npm --save-dev(see here for why
- Commit the
.ebextensionsfile it creates.
- Set the
NPM_TOKENEB environment variable to an npm authentication token.
This module will overwrite the file if/when it is updated.
Pull requests are welcome if you have some generally-useful modifications to suggest.
If you'd like to make modifications specific to your use case, you should uninstall
this module after installing the
.ebextensions file. Uninstallation won't take
the file with it.