1,441 questions
1
vote
1
answer
31
views
AWS Codebuild - Install .NET 9 SDK
.NET 9 runtime isn't available (yet) for AWS Codebuild. Even after installing the SDK using the following commands, my build would still get .NET 6 instead:
version: 0.2
env:
shell: bash
phases:
...
2
votes
1
answer
82
views
How to make Renovate use AWS CodeArtifact as npm registry in AWS CodeBuild?
I am trying to run Renovate inside AWS CodeBuild with AWS CodeCommit (source repo) and AWS CodeArtifact (private npm registry).
Here is my buildspec.yml:
version: 0.2
env:
shell: bash
git-...
0
votes
0
answers
35
views
CODEBUILD_SRC_DIR in AWS CodeBuild points to unexpected path — how is it constructed?
I'm using AWS CodeBuild to build a project hosted in AWS CodeCommit.
My build environment uses the amazonlinux-x86_64-standard:5.0 image.
In my build project settings:
Source: AWS CodeCommit
...
0
votes
1
answer
135
views
Cannot connect to the Docker daemon when using custom Docker image in managed AWS CodeBuild environment
I want to use a custom Docker image in a managed AWS CodeBuild environment. Previously, I had successfully used the provided image Amazon Linux 2023 x86_64 standard:5.0, which comes with pre-installed ...
1
vote
1
answer
77
views
How can I fetch a commit message in AWS CodePipeline/CodeBuild to implement a `[skip ci]` command?
I'm using an AWS CodePipeline with GitHub Connections as the source action to deploy a Python app to an AWS Elastic BeanStalk. I’d like to emulate GitHub Actions' [skip ci] feature by detecting a ...
0
votes
1
answer
29
views
.NET / dotnet script (CSX) execution in AWS CodeBuild not resolving IAM Role
We have a AWS CodeBuild Project configured with an IAM Role with the required permissions to interact with some AWS services, in this case a DynamoDB table. We are executing a dotnet-script (CSX) ...
1
vote
1
answer
710
views
AWS Codebuild error access denied to connection
I'm trying to create my webscraper project and I'm following this guide: "https://github.com/thejoeosborne/scheduled-scraper-example". I uploaded all the account ids and regions in my fork ...
0
votes
1
answer
65
views
Why does my AWS CodeBuild project fail to create a CloudFormation stack with the error "Template file not found"?
I am working on automating the deployment of a static website using AWS CodePipeline and CodeBuild, along with CloudFormation. However, I am encountering some issues in my buildspec.yml configuration.
...
0
votes
0
answers
135
views
"pnpm install" failing with ERR_PNPM_FETCH_304 on AWS CodeBuild, works fine locally
I’m facing an issue where pnpm install keeps failing on AWS CodeBuild with errors like:
[Container] 2024/12/17 14:35:11.133098 Running command pnpm install --no-frozen-lockfile --no-cache --loglevel ...
0
votes
1
answer
145
views
AWS CodeBuild + CodePipeline: "CLIENT_ERROR Message: no matching base directory path found for dist"
I am trying to build the node app through the AWS CodeBuild service and every time its failing with the same error "CLIENT_ERROR Message: no matching base directory path found for dist"
...
0
votes
1
answer
32
views
Predefined CloudFormation stack running as root causes "CodeBuild is not authorized to perform: sts:AssumeRole on service role"
I'm working on deploying an AWS Telco Network and have followed the documentation in doing so along with their sample code, however on the final instantiation step I keep getting an sts:AssumeRole not ...
0
votes
2
answers
99
views
AWS CodePipeline: GitHub > CodePipeline (CodeBuild - Maven Java .WAR) > S3/CodeArtifact > Elastic Beanstalk (Apache Tomcat)
I feel as though I've trawled the entire internet and SO previous questions and tested every combination and permutation to try and get this working, but nothing at all I try works. I cannot seem to ...
1
vote
3
answers
368
views
AWS Codebuild: "No such file or directory"
I have an AWS Codebuild project that should build my eleventy project.
When the project runs npx @11ty/eleventy I can the following error:
/codebuild/output/src3281352166/src/node_modules/.bin/...
0
votes
0
answers
84
views
Yarn workspaces build\deploy issue with AWS CodeBuild to ElasticBeanstalk
I have a monorepo with frontend, backend and my-common yarn workspaces.
+-- node_modules
+-- package.json
+-- tsconfig.json
+-- buildspec.yml
+-- my-common
| +-- package.json
| +-- ...
0
votes
1
answer
63
views
I am facing these error while executing build.yml in AWS codebuild
Error response from daemon: login attempt to ***/v2/ failed with status: 403 Forbidden
[Container] 2024/08/03 09:13:53.450561 Command did not exit successfully echo "$DOCKER_REGISTRY_PASSWORD&...
1
vote
2
answers
1k
views
Github Actions pipeline running in AWS Codebuild hangs with waiting for runner
I have a reusable workflow that I have created in Github Actions, it uses AWS CodeBuild as a runner i.e.
jobs:
docker:
runs-on: codebuild-XXX-XXX-${{ github.run_id }}-${{ github.run_attempt }}
...
1
vote
0
answers
113
views
AWS CodeBuild AccessDeniedException for secretsmanager despite correct IAM policies
I'm setting up a CI/CD pipeline using AWS CodePipeline and AWS CodeBuild to deploy a Docker application running on an Elastic Beanstalk instance. The Docker credentials are stored in AWS Secrets ...
1
vote
2
answers
461
views
AWS CodeBuild as Github actions runner – change folder
I have a Github actions workflow that consists of two dependent jobs:
Job A does change detection: Which modules in my monorepo changed.
Job B is a matrix job, iterating of all changed modules (the ...
1
vote
0
answers
102
views
Nuget enforce HTTPS only traffic from AWS CodeBuild
I am running an AWS CodeBuild project to build, test and publish a .NET 8 application locally (within CodeBuild) and then running it as part of an integration test. The CodeBuild project is running/...
0
votes
0
answers
167
views
Configuring Notifications for CodeBuild in Terraform
I'm trying to configure sns (slack) notifications for CodeBuild in Terraform. By that I mean the 'create notification' lable in the console when we click on "actions". However, I couldn't ...
1
vote
2
answers
432
views
aws codebuild, correto21 and docker not selectable
I do not see a way to use correto21 (java 21) to build a docker image in aws. For EC2 codebuilds, there is only up to correto11, where is the option for correto21 or 17? I see an option for lamda, and ...
0
votes
1
answer
102
views
AWS Pipeline; NextJS; Not all artifacts are uploaded on EC2 instance; GitHub -> CodeBuild -> CodeDeploy
I am using NextJS to build a frontend application.
My code base is stored on GitHub.
I use codepipeline to create a pipeline and deploy it on an EC2 instance with Ubuntu on it.
The issue:
After my ...
3
votes
1
answer
526
views
AWS Local build thinks something is too old but won't say what
I tried setting up AWS codebuild so I could do a local build on AWS. I followed the guidance on https://docs.aws.amazon.com/codebuild/latest/userguide/use-codebuild-agent.html
After doing the setup, I ...
0
votes
1
answer
73
views
S3 Logs not getting populated in case of timeout build in CodeBuild
I am seeing a very weird behaviour, where my codebuild is not populating logs when it is experiencing timeout in any of its phases. It correctly populates S3 logs in case of success or failure ...
0
votes
1
answer
308
views
Deploy Nextjs app with React Big Calendar on AWS Codebuild failed
I encountered an error while deploying my project on AWS CodeBuild. The error message was related to react-big-calendar library, but I am unsure what caused it. I'm using Nextjs 13.4.2, Node 18.6.0. ...