aws-codebuild Questions

3

Background: I'm using an AWS CodeBuild buildspec.yml to iterate through directories from a GitHub repo. Before looping through the directory path $TF_ROOT_DIR, I'm using a bash if statement to chec...
Impeccable asked 28/8, 2020 at 22:47

3

Solved

I have been wasting a lot of time trying to get a GitHub web hook setup with CloudFormation. The docs for this process are beyond useless, for example: https://docs.aws.amazon.com/codebuild/latest/...
Widely asked 16/7, 2019 at 22:11

6

Solved

When starting a code build as part of a simple code pipeline, I get the following error within a few seconds. Action execution failed Error calling startBuild: Cannot have more than 0 builds in qu...
Fessler asked 6/1, 2019 at 15:49

3

I've been struggling with this for hours. So, I created my VPC, along with 4 different subnets. The first three are attached to a regular Internet Gateway. The last one is attached to a NAT Gateway...
Dottie asked 19/11, 2019 at 15:37

4

What field can I set in my IAC definition (i.e., codebuild.yaml and/or buildspec.yaml files) to get my AWS CodeBuild process to perform a full git clone? I have a use case where the last updated da...

4

There's no actual guide to integrating specifically API gateway and Codebuild, so I'm looking at several and trying to adapt. I have my roles and policies set up per this documentation and have my...

3

I have an image in an Amazon ECR Repository called workshop I have a Dockerfile to pull that image CodeBuild should build the new image from Dockerfile Problem: pull access denied for xxxxxxxxxx...

3

I am getting an error while deploying my site Minimum Node version not met :( You are using Node v12.22.2. We require Node >=14 or up! tried updating buildspec.yaml file with node update comma...
Leatheroid asked 5/11, 2021 at 10:10

6

Solved

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 c...
Hohenstaufen asked 1/2, 2019 at 17:4

5

I created a code pipeline with very simple code and connected to codecommit. tried to build it but it is failing at codebuild step stating error executing npm install. Am I missing something? Sorry...
Akela asked 15/2, 2019 at 13:3

6

I'm newbie in AWS, with my free tier account I'm trying to build my nodeJS project with AWS CodeBuild but I get this error: Build failed to start The build failed to start. The following error...
Seemly asked 9/4, 2019 at 20:27

4

Solved

I am using AWS CodeBuild and CodePipeline service to implement CI/CD in my project. AWS CodeBuild using Bitbucket I am getting all repository of my Bitbucket account. While Creating CodePipeLine an...
Juta asked 31/7, 2020 at 2:3

4

Solved

Is there a way to get the commit hash from inside an AWS CodeBuild build step? I tried using the CODEBUILD_RESOLVED_SOURCE_VERSION but it returns the IaC repo's Commit Id instead of the source repo...
Irs asked 27/11, 2019 at 15:38

9

Solved

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_VER...
Mcfadden asked 5/12, 2017 at 15:41

4

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
Ting asked 11/10, 2020 at 2:42

3

Solved

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...

11

Solved

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 l...
Rubinrubina asked 20/1, 2021 at 9:8

7

Solved

Background: I'm using an AWS CodeBuild buildspec.yml to iterate through directories from a GitHub repo to apply IaC using Terraform. To access the credentials needed for the Terraform AWS provider,...

3

Solved

I'm trying to create a CloudFormation template supporting Lambda Function and AWS CodeBuild project for building .netcore source code into a deployed zip file in S3 bucket. Here are the particula...
Krupp asked 26/9, 2019 at 6:4

4

I want to build a docker image from a Dockerfile, and publish this image to an AWS ECR (Docker registry). In order to succeed, I need to have access to docker build and docker push from within the ...
Dutchman asked 25/6, 2020 at 15:58

10

Solved

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....
Almsman asked 29/10, 2020 at 17:34

6

Solved

Is there a way to drop root user on AWS CodeBuild? We are building a Yocto project that fails on CodeBuild if we're root (Bitbake sanity check). Our desperate approach doesn't work either: ... ...
Urushiol asked 16/7, 2018 at 15:44

3

I would like to build with non-root user. To achieve this I'm looking at run-as build spec. run-as: Optional sequence. Available to Linux users only. Specifies a Linux user that runs commands i...
Hyderabad asked 6/7, 2019 at 12:36

2

I see the following error when executing npm install -g serverless via buildspec.yml from AWS Codebuild [email protected] postinstall /usr/local/lib/node_modules/serverless/node_modules/stora...
Arctogaea asked 21/6, 2020 at 20:32

2

Solved

This is what my current buildspec looks like: phases: build: commands: - ./gradlew soakTest -s cache: paths: - '/root/.gradle/caches/**/*' - '.gradle/**/*' But when this buildspec runs in...
Janejanean asked 2/5, 2018 at 3:11

© 2022 - 2024 — McMap. All rights reserved.