Add path
option to @nx/s3-cache
#30784
Replies: 3 comments
-
Would like to add, another communit plugin (https://www.npmjs.com/package/@pellegrims/nx-remotecache-s3) also had an option for prefixes which we found very useful in our org. That way, we had to manage only one S3 bucket that multiple projects / repositories used, and retain the ability to purge the cache for specific projects. |
Beta Was this translation helpful? Give feedback.
-
I previously brought this up in discord and @altan mentioned he would raise it to the team. |
Beta Was this translation helpful? Give feedback.
-
I am also very interested in this being added as we were previously using the prefix option with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
@nx/s3-cache
plugin (as of1.3.2.
) does not provide a way to prepend a path to theKey
for the s3 object.In
nx-aws-cache
, this was done by overloading theawsBucket
option which would extract out the bucket name (first slug) and use the rest of the path when creating thekey
.For example,
would result in a put/retrieve payload that looks like:
Having a
path
orcacheKeyPrefix
option that is prepended to the cache key would enable better organization of Nx-specific cache objects and granular security/network rules for S3 bucket access. Or simply do whatnx-aws-cache
does and overload thebucket
option in thes3
configuration object.Beta Was this translation helpful? Give feedback.
All reactions