Questions tagged [buildspec]

55 questions
0
votes
0 answers

npm-run-all -p build:* sh: 1: npm-run-all: not found npm ERR! code ELIFECYCLE

[Container] 2021/05/28 16:28:06 Entering phase BUILD [Container] 2021/05/28 16:28:06 Running command npm run build settl-me@1.3.0 build /codebuild/output/src979787175/src npm-run-all -p build:* sh: 1: npm-run-all: not found npm ERR! code…
0
votes
2 answers

Error in Deploy stage. Not finding error in logs in AWS code pipeline

I have reactjs project in my bitbucket. I am trying to deploy that in my EC2 server but facing error in Deploy stage. and when checking error...it is not deploying as shown in figute...I am sharing you the files and errors....can you guys please…
user15884878
0
votes
3 answers

AWS CodeBuild - BuildSpec.yml - exported-variables are not resolving values

I am trying to export a variable value from the CodeBuild Stage of AWS code-pipeline but the value is not resolving Note: Windows container's PowerShell is executing the commands of buildspec.yml Example: I am setting an Input environment variable…
0
votes
1 answer

Can AWS CodeBuild build two Docker Images simultaneously?

I have two Dockerfiles. In Cloudformation I want CodeBuild to build two images from the two Dockerfiles. I might need two different buildspec files for that, and one CodeBuild. Is this possible?
0
votes
1 answer

How to configure AWS Codebuild with Webpack

I have created an AWS Codepipeline that runs in four stages. 1) Source code from github, 2) deploy backend to Elastic Beanstalk, 3) build fronted code with Codebuild (using the buildspec file below), and 4) deploy results of webpack to…
-1
votes
1 answer

Upload jar to Lambda when I do CodeCommit in AWS

When i push changes in AWS CodeCommit Repo, I want to make JAR file with mvn install command for that Java Code and upload it to AWS Lambda function. Location of that Jar file should be inside src/main/target. Can anyone suggest buildspec.yaml file?
-1
votes
1 answer

AWS Codebuild Buildspec Terraform init backend error

I am trying to initialize my backend for the first time via AWS Codebuild. Up until this point I have been able to run the initial deployment. Once the Terraform Apply has been completed I try to initialize the backend and move it to S3. Here is…
-1
votes
1 answer

docker build build-args containing spaces in a buildspec.yml file doesn't work

We are using CodeBuild AWS service, that use a buildspec.yml file to execute some command on different stage of the build (pre_build, build, post_build and others). I wanted to have a global buildspec.yml file, that could be edited thanks for…
-2
votes
1 answer

How to add .platform in buildspec.yml file artifacts

How I can include the .platform directory in the artifacts of the buildspec.yml file? Background: I want to change the nginx setting client_max_body_size on Elastic Beanstalk. I am using CodePipeline to deploy my war file on Elastic Beanstalk. Below…
-2
votes
1 answer

CodeBuild policy error: "Not authorized to perform: ssm:GetParameters"

I need to transfer a variables which I prescribed in my CodeBuild, but I get this error: Phase context status code: Decrypted Variables Error Message: AccessDeniedException: User:…
1 2 3
4