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 年前檢視次數 630 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南