Questions tagged [buildspec]
55 questions
0
votes
1 answer
Cypress AWS codebuild error: spec must be a string or comma-separated list
I am trying to implement parallel testing in AWS code build. I created a buildspec.yml file like this sample project:
https://github.com/cypress-io/cypress-realworld-app/blob/develop/buildspec.yml
My problem is the environments that I use during the…

tcetin
- 979
- 1
- 21
- 48
0
votes
1 answer
Using AWS CodeBuild environment variable inside buildspec session
I created an environment variable in AWS CodeBuild.
How can I use it inside buildspec session ?
0
votes
0 answers
CDK and batch build
I am trying to have cypress tests run in parallel in codepipeline/codebuild as documented here: https://docs.cypress.io/guides/continuous-integration/aws-codebuild#Parallelizing-the-build
I am reading aws docs…

systemdebt
- 4,589
- 10
- 55
- 116
0
votes
0 answers
Codebuild: How to send credentials retrieved through secrets manager to a json file during build
I have a JSON body that looks something like this.
This was retrieved through AWS cli secrets manager command.
{
"user1": {
"username": "user",
"password": "123",
},
"user2": {
"username": "user2",
"password":…

Steve
- 197
- 7
- 17
0
votes
1 answer
Anyone know how to install dig into the codebuild v5 image on AWS?
So, I want to install the dig command because it's not available in the Codebuild v5 image.
I tried to do:
sudo apt-get install dnsutils
but it errors out with an exit status 100.
What's the best way to get this utility in my image with the…

Jimmy Chen
- 207
- 5
- 12
0
votes
1 answer
AWS CodeBuild buildspec - are changes to variables in phases section available in artifacts section?
I define some variables in the env/variables, then make changes to the value in phases/pre_build. I want to use the variable down in artifacts, but it looks like the changes are not persisted.
This is a legacy Windows .NET Framework 4.7.2…

Matthew Allen
- 538
- 2
- 7
- 14
0
votes
1 answer
Can awscli be used in AWS Codebuild buildspec running on a custom image?
If a Codebuild project runs on a custom image that has awscli preinstalled, but not configured for that AWS account, would it be still possible to run aws * in that project's buildspec without updating its AWS credentials there first?
In other…

Yuriy
- 1,964
- 16
- 23
0
votes
1 answer
Codebuild, buildspec error ;Phase context status code: YAML_FILE_ERROR Message: Expected to be of struct type: found string instead at line 1
I am having trouble running the buildspec file stored in an s3 bucket , the following error ocurs when I am in the build step of the pipeline;
"Phase context status code: YAML_FILE_ERROR Message: Expected to be of struct type: found string instead…

Federico Agudelo Mejia
- 397
- 1
- 3
- 9
0
votes
1 answer
Error while building simple API with AWS CodePipeline, CodeBuild
I have been attempting to set up auto-deploy from my github repo for this simple REST API and cannot get it to stop erroring on 'npm install'. It is your basic node project with express. Here is my buildspec.yml:
version: 0.2
phases:
install:
…

Jason Ross
- 87
- 7
0
votes
1 answer
AWS Codepipeline using namespaces in Terraform
Has anyone out there worked with namespaces in was Codepipeline? I have the reference link from AWS but as always Terraform does not have actual examples. What I want to do is take the output variable from one buildspec in one phase and access…

Maxamis4
- 137
- 8
0
votes
1 answer
AWS Codepipeline Multiple Output Artifacts
Still fairly new to AWS Codepipeline and I am trying to pass an output artifact out into the next stage of my build. In this particular case, I want to do two artifacts for the builds phase which is the only part I am focusing on right now. I have…

Maxamis4
- 137
- 8
0
votes
1 answer
Buildspec for Spring boot application
So i stuck on one thing I have an application which was written on Spring boot and located on Fargate behind Application Load Balancer. I should make a load performance testing on that app and create buildspec file, i made it but i completly new in…
user14076259
0
votes
1 answer
Creating appspec json file with codebuild (bash)
post_build:
commands:
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
- docker push…

nanakondor
- 615
- 11
- 25
0
votes
0 answers
Buildspec.yml file position in my terraform project
So, I have a big terraform folder where I put all my work with terraform. In that terraform folder I have a terraform-project subfolder which is a structured terraform project with modules, environments, etc. I was wondering where should I put my…

Luke
- 7
- 3
0
votes
0 answers
After code deployment, an updated aws cloudformation nested stack custom parameter from console gets its default value
I am trying to update a custom parameter on CloudFormation nested stack from console. It is updated but after code deployment, it gets default value. I want to save last updated value after deployment. I used a bash script as a build command on…

rdvnkrtl
- 11
- 2