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
0 answers

How to use Git commands in buildspec file?

I am using Windows OS and Github as repository. I want to add Remote repository using Git command in buildspec file. My command is git remote add origin https://github.com/moodysanalytics/maks-bc-fdeexcelwrapper. I am getting error "The term 'git'…
Gobind
  • 588
  • 1
  • 7
  • 18
0
votes
1 answer

Is there any way by which we can track the fingerprints of Artifacts in AWS CodeBuild / CodePipeline?

Is there any way by which we can track build artifacts fingerprints in AWS CodeBuild / CodePipeline, something similar to that we have in Jenkins. https://wiki.jenkins.io/display/JENKINS/Fingerprint
0
votes
0 answers

How do I limit CodeBuild in a CodePipeline so it only builds when needed?

I've set up a CodePipeline which automatically takes new commits on Github, builds them, and then deploys to EC2 instances. This works well. However, since this is a web project I don't need to run build scripts for all commits made. I don't waste…
0
votes
2 answers

AWS Lambda with Python 3 and virtualenv failed to install dependencies

I'm working on a project in Python3.6 and I use AWS Lambda to implement some functions in python. I have written a buildspec.yml file to "build" and deploy my function from a repository to lambda functions. Here is the code: version: 0.2 phases: …
0
votes
0 answers

code build error while creating code build project 'not authorized to perform: ecr:DescribeRepositories on resource: *'

I was given developer access to codebuild in aws but when I try to create a codebuild project the console throws me below error. Error User: arn:aws:iam::472795581601:user/****** is not authorized to perform: ecr:DescribeRepositories on resource:…
Kishan
  • 197
  • 1
  • 1
  • 6
0
votes
1 answer

How to re-use code in a CodeStar project?

I have created a CodeStar project (Python Webservice template as starting point) and I am using vscode to edit it. So far I have customised the generated project to have two lambdas. The structure is as…
0
votes
1 answer

AWS Codecommit Ignores environment variables

I'm attempting to deploy a practice application via AWS CodePipeline. However when I build, I notice the environment variable I added to the buildspec.yml file isn't picked up by my React application. My buildspec file is below version: 0.1 env: …
Zeeno
  • 2,671
  • 9
  • 37
  • 60
0
votes
1 answer

Jest not close()ing expressjs server when run on AWS Codebuild

When I run locally jest exits fine, but when run on codebuild jest will not exit and gives this error: Jest has detected the following 1 open handle potentially keeping Jest from exiting: ● TCPSERVERWRAP 13 | routes(app) 14 | > 15 |…
edzillion
  • 3,592
  • 5
  • 31
  • 50
0
votes
1 answer

How to pass environment variable & values to codebuild from Cloudwatch Event rules?

I have a CodeBuild buildspec which has command to run based on environments (reads Env. variable) eg: Dev, Test etc. I stead of creating two different codebuilds to run this command, I want to pass Env variable value from CloudWatch rules i.e. with…
0
votes
1 answer

I try to build an AWS CodeBuild, but failed

https://github.com/chenjianAgain/codestar_web.git I setup a codebuild in AWS console. But when I started to perform a build, I met up with some errors. It seems that there is something wrong with the installation of AWS cli. I wonder why awscli…
Joseph Chen
  • 283
  • 4
  • 11
0
votes
1 answer

AWS CodeBuild unable to download gradle wrapper

I am using gradle to build a Java application on AWS. However when I am trying to build the code, CodeBuild throws the following exception when trying to download Gradle Exception in thread "main" javax.net.ssl.SSLHandshakeException:…
orestis
  • 932
  • 2
  • 9
  • 23
0
votes
1 answer

AWS Codebuild error while installing SASSC gem wrong ruby version

I'm running a Codestar project. Sample app installs fine. When I add my application in with SASSC get failure, because of Ruby version. Is there away to notify CodeBuild to upgrade Ruby version? tried looking through buildspec.yml am I anywhere…
0
votes
1 answer

AWS CodeCommit + CodePipeline on CI workflow

what I'm trying to do is to create a following CI flow with standard AWS tools: CodeCommit -> CodePipeline (CodeBuild) so run a build when a Pull Request in CodeCommit is created. From what I've seen so far, the pull request is from a specific…
user3611522
  • 81
  • 1
  • 11
0
votes
2 answers

Does AWS codebuild support proxy

Is there a way we can use all the public resources that awscodebuild need access to (such as AWS CodeCommit, GitHub, Bitbucket), Amazon Simple Storage Service (Amazon S3) to deliver build artifacts, and Amazon CloudWatch Logs ) without attaching a…
Ishu Gupta
  • 1,071
  • 1
  • 19
  • 43
0
votes
1 answer

How to retrieve matched event from Cloudwatch in Codebuild?

Like in lambda, the Cloudwatch events are sent to handler(event, context), if I set Codebuild as target, which variable do I use to read the matched event in Codebuild?