WindmillWWindmill
Powered by
alllex229A
Windmill•4mo ago•
6 replies
alllex229

AWS CodeArtifact Authentication Failing for NPM Packages

According to https://github.com/windmill-labs/windmill/discussions/5873, AWS CodeArtifact works for Python packages. I'm trying to configure the same for NPM packages but encountering authentication issues.

Configuration:
Set these environment variables on all workers:
EPHEMERAL_TOKEN_CMD="aws codeartifact get-authorization-token --region <region> --domain <insert domain> --query authorizationToken --output text --duration-seconds 900"
NPM_CONFIG_REGISTRY="https://<domain>-<account>.d.codeartifact.<region>.amazonaws.com/npm/<repository>/:_authToken=EPHEMERAL_TOKEN"

Issue:
Token command works correctly when executed directly in shell on worker
IAM policies verified and working
Importing NPM packages in scripts fails with 401 Unauthorized error

Question:
Is there a missing configuration step or workaround needed for NPM packages?
GitHub
Using AWS CodeArtifact for packages · windmill-labs windmill · Di...
Hi there! We have recently upgraded to Enterprise, but it's not clear how to set up access to CodeArtifact and ensure we keep the relevant token refreshed. Where are the docs etc on that?
Using AWS CodeArtifact for packages · windmill-labs windmill · Di...
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 5d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Having trouble running python scripts that depend on packages from AWS codeartifact.
AlekseyAAleksey / help
15mo ago
Typescript types for npm packages
bnasonBbnason / help
2d ago
Intermittent 401 errors on private NPM packages
invakid404Iinvakid404 / help
12mo ago
Using Trigger Authentication
TylerTTyler / help
7mo ago