Skip to main content

Questions tagged [aws-codebuild]

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

aws-codebuild
-1 votes
1 answer
13 views

AWS CodeBuild Fails with YAML_FILE_ERROR When Running Python Script in buildspec.yml

I’m trying to run a Python script in AWS CodeBuild using a buildspec.yml file. The Python script is supposed to send an email using AWS SES. Here’s the relevant part of my buildspec.yml: version: 0.2 ...
Yiffany's user avatar
  • 317
0 votes
0 answers
15 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. The CodeBuild project is running/deployed in my account's VPC which, includes a NAT Gateway for outbound ...
smk081's user avatar
  • 1,010
1 vote
0 answers
28 views

How to delete IPv4 from target group (AWS EC2) using buildspec script

I created a DevOps pipeline in AWS Console. I created a project in AWS Code Build and used that project in a stage in my pipeline. The objective from this stage is to get the private IP of a service ...
AymenMz's user avatar
  • 11
0 votes
0 answers
31 views

Using aws codebuild pipeline variables in Cypress

I'm having issues using pipeline variables i setup on aws codebuild with cypress. Basically I don't know how to call them from my Cypress code. Example of my buildspec.yml version: 0.2 env: ...
Umi's user avatar
  • 61
0 votes
0 answers
15 views

Trigger an AWS Code Deploy from an API call

I am trying to create a deployment strategy when the code deploy should start deploying the application when it receives a trigger from an API call. I have an application which onboards a user, where ...
dude0786's user avatar
-1 votes
0 answers
16 views

SAM Template File for AWS Java Lambda Code in AWS CodePipeline

I am building a AWS Java Lambda function using SAM template and AWS CodePiepline using terraform. The Build stage fails stating that it cannot find the template file for running sam package command. ...
dossani's user avatar
  • 1,930
0 votes
0 answers
17 views

Codepipeline level variable is not getting resolved

How to get the resolved value of codepipeline level variable which defaults to #{SourceVariables.CommitId}? I have setup a codepipeline having Bitbucket repo as Source and codebuild for deploy stage. ...
Amitesh Kumar's user avatar
0 votes
0 answers
65 views

AWS CodeBuild - Build Sql Server Database project

I have a SQL Server database project in Visual Studio (MYDB.sqlproj). For CI/CD purposes I have added a Dummy.csproj project to the solution, I have included a reference to MYDB project in the Dummy ...
Ebikeneser's user avatar
  • 2,326
0 votes
1 answer
31 views

AWS codebuild fails to build docker file. Environment is externally managed : ERROR

Few months ago AWS Codebuild used to build docker file successfully. Now after new changes I pushed the build and tried to build and it doesn't work. The build logs shows the following error: ...
Sheharyar S.'s user avatar
0 votes
0 answers
7 views

Restrict access to specific CodeBuild projects

We're using AWS CodeBuild to run a process to deploy code changes. This is run manually when a user wants to deploy the changes. So far we've set this up for deploying to dev servers. We now want to ...
DatabaseShouter's user avatar
0 votes
0 answers
24 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 ...
theo's user avatar
  • 11
0 votes
0 answers
24 views

AWS CodeBuild - Testing .NET Docker Container, No Ports Mapped

I'm building and testing a docker container in CodeBuild running an ASP.NET Core 8 MVC web app with kestrel configured to listen on any IP on port 5000. When I build and test locally (using the same ...
mhaken's user avatar
  • 1,115
0 votes
0 answers
39 views

Gitlab Webhook to AWS Codebuild behaving weirdly

I recently found out that AWS CodeBuild now has a native integration with GitLab and GitLab Self-Managed, so I tried to move our CI/CD to AWS. Initial tests were fine; things were working, but ...
Bruno Bertolini Rabello's user avatar
0 votes
0 answers
34 views

CodeBuild not persisting environment variables between commands in buildspec version 0.2 on Windows

The documentation for AWS CodeBuild says (my emphasis): Note In buildspec version 0.1, CodeBuild runs each command in a separate instance of the default shell in the build environment. This means ...
djvg's user avatar
  • 13.5k
1 vote
1 answer
251 views

Terminate playwright test on test fail

I have a codebuild project where I have some playwright tests running. I want the build to fail whenever a test fails, but when the test fails it just hangs and the log tells us to terminate with Ctrl ...
theo's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
98