You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom plugin or engine published to a private repo, running artillery with run-lambda does not work because the container can't access the private repo to pull down the engine/plugin packages.
I suspect this wasn't an issue previously using the bundling method as the zip was created locally but now custom engines/plugins are installed from within the containe, which doesn't have the right credentials.
Is there any way to get this to work that I'm missing? I haven't seen anything in the docs or other issues/discussions like this one. I've got a custom engine within my organisation that relies on some private dependencies in artifactory, and the engine itself is also published on our private artifactory.
At the moment we don't have first-class support for private registries in Lambda, but we intend to make this work similar to Fargate at some point. If you need this, Fargate might be a solution for you in the meantime.
Another potential solution (untested), is to use includeFiles to include the npmrc file in the bundle. This is currently documented in the wrong section in our docs, but we'll get that fixed. It should work like this though: https://www.artillery.io/docs/artillery-pro/running-tests-with-pro#explicitly-bundling-files-with-the-test . Bear in mind this would copy the .npmrc file onto the S3 bucket (together with other test files), so do make sure that is not exposed in any way.
When using a custom plugin or engine published to a private repo, running artillery with run-lambda does not work because the container can't access the private repo to pull down the engine/plugin packages.
I suspect this wasn't an issue previously using the bundling method as the zip was created locally but now custom engines/plugins are installed from within the containe, which doesn't have the right credentials.
Is there any way to get this to work that I'm missing? I haven't seen anything in the docs or other issues/discussions like this one. I've got a custom engine within my organisation that relies on some private dependencies in artifactory, and the engine itself is also published on our private artifactory.
Version info:
Running this command:
I expected to see this happen:
Dependenices from a private repo can be installed via some kind of configuration somewhere with appropriate credentials
Instead, this happened:
Lambda throws error during npm install as it can't find the private package on registry.npmjs.org, because it lives in a private artifactory repo
Files being used:
Not relevant
The text was updated successfully, but these errors were encountered: