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
0
votes
1 answer

docker container does not start postgres server on Amazon Codebuild

I am using custom docker container to build code, the container is integrated with Amazon codebuild. AWS codebuild spins up a Docker container and builds the code on the container provided by us. The Dockerfile of container that I've written is like…
0
votes
2 answers

AWS CodeBuild breaking on os.environ - python can't find environment variable

So I've built a Django application, and used the AWS CodeStar Django template (EC2, EB). The first thing I did was change the SECRET_KEY to pull from an environment variable like so os.environ['DJANGO_SECRET_KEY']. I ssh'ed into the EC2 instance…
0
votes
1 answer

AWS CodeBuild - How to use one and the same buildspec.yml for multiple projects?

We have the following GitHub projects setting (Maven, Java): Project000 Project001 .. They should use exactly the same buildspec.yml and we do not place it in every object. However, in CodeBuild we should copy/paste directly in the project build or…
Stanislav Ivanov
  • 425
  • 2
  • 7
  • 19
0
votes
1 answer

CICD pipeline for nodejs app with no EC2 instances possible?

Can you have a CICD pipeline using AWS codepipeline for a nodejs app without using any EC2 instance for codebuild? You would just have a code repo -> codebuild -> buildspec file -> Deploy to staging (S3) ? My question is NOT about deploying a…
0
votes
2 answers

invalid pkt-len - AWS CodeBuild failing on DOWNLOAD_SOURCE from CodeCommit

I am running this error during the "DOWNLOAD_SOURCE" phase in CodeBuild: "invalid pkt-len found" No other information is provided. I have tried various things to rule out problems. a) The CodeCommit repo clones successfully, and appears to be fully…
dheffx
  • 140
  • 7
0
votes
2 answers

AWS CodeBuild failure on getting source

I have CodeBuild project that works fine. Trying to use it in CodePipeline and it failure with empty Repository and Submitter. Failure logs are simple as: 01:34:17 [Container] 2018/03/08 01:34:10 Waiting for agent ping  01:34:17 [Container]…
AlexGera
  • 756
  • 9
  • 19
0
votes
1 answer

How to publish a package to npm from AWS CodeBuild?

I have a Node.js package available in public npm repository. Also I set up a build in AWS CodeBuild to run unit tests each time there's a new push into the master branch of package's repository on github. I'd like to set up automatic invocation of…
Volodymyr Frolov
  • 1,256
  • 5
  • 16
  • 25
0
votes
1 answer

AWS CodeBuild can't access Maven repository on GitHub

I'm having a little trouble with AWS CodeBuild.. We are hosting the ibis adapter framework on Github (https://github.com/ibissource/mvn-repo) as a Maven repository. I'm using the framework as a dependency for the project I'm working on. In my…
Laurens Mäkel
  • 815
  • 2
  • 12
  • 29
0
votes
1 answer

AWS Codepipeline Continue Previous Execution

I am using AWS CodePipeline in order to automatically check out code, build an application with CodeBuild and deploy the application to an ECS cluster for development. After that I inserted a manual step to approve deployment to the staging…
0
votes
1 answer

AWS CodeBuild Skipping invalid artifact path - not a valid identifier

I have an AWS CodeBuild that processes two projects, during the build process the source will get built and bundled in zip files and placed in bundles/*. The following is how the directory tree looks like, where bundles contains the generated zip…
Claudiordgz
  • 3,023
  • 1
  • 21
  • 48
0
votes
3 answers

CodeBuild (AWS) from CodePipeline (AWS)

I'm trying to trigger multiple builds with CodePipeline (AWS) and when the pipeline trigger a CodeBuild, the CodeBuild fail with the next error: [Container] 2018/02/07 19:30:20 Waiting for DOWNLOAD_SOURCE Message: Access Denied Extra…
0
votes
2 answers

AWS codebuild not running terraform at post_build

I am trying to set up the build for my project on aws codebuild and i am using terraform to setup the all the instances, route53 and ect... but after docker push the terraform script never gets executed. i am wondering why. (I am new to…
Bill
  • 17,872
  • 19
  • 83
  • 131
0
votes
1 answer

AWS CodeBuild DOWNLOAD_SOURCE Runtime error (*exec.ExitError: exit status 1)

I have automated build with AWS CodePipeline, it worked fine, but suddenly today it started to fail with this weird error message, which I can't fine anywhere to understand what's going on. Container] 2017/12/26 16:42:52 Waiting for agent…
0
votes
2 answers

Serverless Deploy From another Directory

Here is my root folder and i want to deploy AWS Lambda functions to codecommit from the Backend folder. Therefore i wrote this command, but AWS CodeBuild gives this error (This command can only be run in a Serverless service directory). version:…
0
votes
2 answers

Issue with code build pushing artifacts back to github

I am trying to run maven release:prepare with aws code build and getting an error saying that The git-push command failed. Command output: error: cannot run ssh: No such file or directory fatal: unable to fork tried passing public and private…
ravi
  • 43
  • 6