Questions tagged [aws-codebuild]

Describes Amazon Web Services CodeBuild questions and answers. Scope should be limited to AWS CodeBuild.

AWS CodeBuild is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy. With CodeBuild, you don’t need to provision, manage, and scale your own build servers. CodeBuild scales continuously and processes multiple builds concurrently, so your builds are not left waiting in a queue. You can get started quickly by using prepackaged build environments, or you can create custom build environments that use your own build tools. With CodeBuild, you are charged by the minute for the compute resources you use.

Documentation

1448 questions
77
votes
10 answers

ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' in AWS CodeBuild

ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' (/python3.7/site-packages/botocore/docs/bcdoc/init.py) Traceback (most recent call last): File "/root/.pyenv/versions/3.7.6/bin/aws", line 19, in import…
Juan Rey Hernández
  • 2,688
  • 3
  • 16
  • 18
70
votes
11 answers

toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading

Why does this happen, when I want to build an image from a Dockerfile in CodeCommit with CodeBuild? I get this Error: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading:…
vasil001
  • 2,501
  • 4
  • 8
  • 22
48
votes
13 answers

How to increase the maximum size of the AWS lambda deployment package (RequestEntityTooLargeException)?

I upload my lambda function sources from AWS codebuild. My Python script uses NLTK so it needs a lot of data. My .zip package is too big and an RequestEntityTooLargeException occurs. I want to know how to increase the size of the deployment package…
Louis Singer
  • 767
  • 1
  • 9
  • 18
40
votes
7 answers

CodeBuild execution continues after build fails instead of stopping

I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My…
30
votes
4 answers

AWS CodeBuild failed CLIENT_ERROR: authorization failed for primary source and source version

I have already authenticated the GitHub account. My AWS CodePipeline is failing with this error: CLIENT_ERROR: authorization failed for primary source and source version
Ada_lovelace
  • 637
  • 2
  • 6
  • 18
28
votes
5 answers

AWS CodeBuild buildspec.yml get all files and subfolders recursively

I'm trying to use AWS CodeBuild to get all files and subfolders inside a nested public folder and deploy to an S3 bucket using CodePipeline. I was able to hook them all together but struggling to configure the buildspec.yml file to get the output I…
Viet
  • 6,513
  • 12
  • 42
  • 74
28
votes
4 answers

DOWNLOAD_SOURCE Failed AWS CodeBuild

Whenever I start AWS CodeBuild I get this type of error every time. please help. DOWNLOAD_SOURCE Failed 3 mins, 2 secs Get https://github.com/themithunbiswas/test-repo.git/info/refs?service=git-upload-pack: dial tcp…
Mithun Biswas
  • 1,617
  • 1
  • 12
  • 19
27
votes
3 answers

How to pass environment variable to the buildspec.yml for AWS codebuild

I have the following command in my buildspec.yml file in my gatsby site root directory. version: 0.2 phases: install: commands: - npm i npm@latest -g - npm install --global gatsby-cli - npm install - pip install…
m5kev4n
  • 541
  • 1
  • 8
  • 20
27
votes
2 answers

Selecting other branch instead of master as a source repository on AWS CodeBuild

How to specify different branch instead of master branch on AWS code deploy while using Github as source provider ? I see there is no option to select in the console to select branch(may be I missed). I tried to checkout to different branch while we…
bravokeyl
  • 346
  • 3
  • 16
  • 28
26
votes
3 answers

YAML_FILE_ERROR: YAML file does not exist

I'm trying to implement a pipeline on AWS, but I get an error: YAML_FILE_ERROR: YAML file does not exist I don't know why. I'm using github repo for mean stack project, entry file is docker-compose. Yml.
Abhishek
  • 1,742
  • 2
  • 14
  • 25
26
votes
8 answers

AWS CodeBuild + CodePipeline: "No matching artifact paths found"

I am attempting to get CodePipeline to fetch my code from GitHub and build it with CodeBuild. The first (Source) step works fine. But the second (Build) step fails during the "UPLOAD_ARTIFACTS" part. Here are the relevant log statements: [Container]…
John D.
  • 2,521
  • 3
  • 24
  • 45
25
votes
3 answers

How to run docker-compose on AWS CodeBuild?

I'm trying to setup automated Rails tests on AWS CodeBuild using docker-compose, but it errors out. In buildspec.yml: phases: build: commands: - docker-compose up -d [Container] 2018/10/23 11:27:56 Running command docker-compose up…
mahemoff
  • 44,526
  • 36
  • 160
  • 222
25
votes
4 answers

Setting credentials for https git clone in AWS CodeBuild

I am running a CodeBuild on a project that has private requirements stored in CodeCommit. I need to add a command in buildspec.yml that loads the https git credentials so git clone works when CodeBuild runs pip install. The build fails with fatal:…
woodpav
  • 1,917
  • 2
  • 13
  • 26
25
votes
8 answers

Get GitHub git branch for AWS CodeBuild

I'm setup AWS CodeBuild to build automatically from GitHub. Other CI services provide an environment variable for the branch, but I can't find one for AWS CodeBuild. There is a CODEBUILD_SOURCE_VERSION that is set to either pr/7 where 7 is the pull…
Cameron Taggart
  • 5,771
  • 4
  • 45
  • 70
23
votes
4 answers

AWS CodeBuild ECR CannotPullContainerError

CodeBuild project fails at the Provisioning phase due to the following error BUILD_CONTAINER_UNABLE_TO_PULL_IMAGE: Unable to pull customer's container image. CannotPullContainerError: Error response from daemon: pull access denied for ,…
Chaitanya Bapat
  • 3,381
  • 6
  • 34
  • 59
1
2 3
96 97