Using CodeArtifact as a dependency caching layer only

0

Background

Our team is currently using Codebuild/codepipeline for CI/CD. We are looking to speed-up CI/CD run-times by caching NPM downloads via CodeArtifact. We're not looking to make use of any CodeBuild caching solutions e.g. local cache as in the future we will be moving our CI/CD to different toolchain. However, we will still need a caching layer for our dependencies.

Use Case

We want to use CodeArtifact as the caching layer for our NPM dependencies (another option could be JFrog). However, we won't be pushing any artifacts to CodeArtifact, just simply downloading publicly available dependencies from the NPM registry via CodeArtifact leveraging the caching capabilities of CodeArtifact.

Question

Is our use-case of simply using CodeArtifact as a NPM caching layer appropriate and usable across different CI/CD solutions? For example, if it will work with CodeBuild today, will it work equally as well with BitBucket pipelines?

已提问 2 年前629 查看次数
1 回答
0

Is our use-case of simply using CodeArtifact as a NPM caching layer appropriate and usable across different CI/CD solutions?

Yes, this will work. The only thing to remember is that you will need AWS credentials to be able to authenticate with CodeArtifact. Looks like there are some guidelines for doing this here: https://support.atlassian.com/bitbucket-cloud/docs/deploy-to-aws-with-s3/.

profile pictureAWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则