AWS CodeBuild S3 Caching not working

1

I think the CodeBuild feature is currently massively underdocumented. [1]

I am trying to cache a pnpm store path during an AWS-CDK CodePipeline synth step. Unfortunately only a 160 bytes large file is created in the S3 bucket.

It is totally unclear to me how to specify which files to cache when using the "Amazon S3 caching".

  • It does not say from where it is selecting the objects.
  • It does not say whether files are zipped before being uploaded to S3.
  • It does not say whether the buildspec's cache property [2] can be used to select which files to cache.
  • CodeBuild does not log what it is doing at all!! Just saying "Uploading S3 cache..."....

This feature is giving us 0% visibility into what it is doing and the docs give 0% guidance into how it is supposed to be used.
Could someone please clarify?

Here is another person having a similar issue: https://github.com/aws/aws-cdk/issues/21727

Thanks, Martin

[1] https://docs.aws.amazon.com/codebuild/latest/userguide/build-caching.html
[2] https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-syntax

  • Sometimes docs are just not to pace mate...

질문됨 3달 전75회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠