Questions tagged [aws-codebuild]

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

AWS CodeBuild is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy. With CodeBuild, you don’t need to provision, manage, and scale your own build servers. CodeBuild scales continuously and processes multiple builds concurrently, so your builds are not left waiting in a queue. You can get started quickly by using prepackaged build environments, or you can create custom build environments that use your own build tools. With CodeBuild, you are charged by the minute for the compute resources you use.

Documentation

1448 questions
-1
votes
2 answers

How to run the bash when we trigger docker run command without -it?

I have a Dockerfile as follow: FROM centos RUN mkdir work RUN yum install -y python3 java-1.8.0-openjdk java-1.8.0-openjdk-devel tar git wget zip RUN pip install pandas RUN pip install boto3 RUN pip install pynt WORKDIR ./work CMD ["bash"] where i…
-1
votes
1 answer

Default IP of AWS Codebuild

Our team is trying to use the AWS code-build to run selenium testing. We were able to deploy and up the backend (Gunicorn) and frontend (nginx) and used a custom Docker image. However, we we're not able to access the URL of our Web App. In my local…
-1
votes
1 answer

Unable to specify buildsec.yml path in codebuild

S3 is my source for codebuild, i am passing zip file. buildspec.yml is inside zip file, how do i pass the path for codebuild in buildspec configuration.
-1
votes
1 answer

pytest on AWS CodeBuild givers Error : E NameError: name 'add_numbers' is not defined

I am using AWS CodeBuild to execute unit test on my python code. When i execute project in CodeBuild , it completes successfully but unit tests are not executed properly. It gives Error E NameError: name add_numbers' is not defined add_numbers is…
-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:…
-2
votes
1 answer

How to convert aws commands to cdk commands in buildspec.yml?

In the buildspec.yml, aws codes is - post_build: commands: - aws s3 cp --recursive --acl public-read dist/ s3://com-abc-${xyz}-random So, how can i replace aws s3 cp --recursive --acl public-read dist/ s3://com-abc-${xyz}-random command with cdk…
owlz
  • 31
  • 1
  • 6
-2
votes
1 answer

Kubectl codepipeline

I am getting "Response Status: 401 Unauthorized" error while deploying kubectl via codebuild. Can someone help? Logs snippets: I0804 12:13:45.711701 43 round_trippers.go:383] GET…
-3
votes
1 answer

Python scripts output status (if failed or ran with success) in YML file

do you know how can I have output logs when running a (my_script).py in a YML (CICD)? I'm working with AWS codepipeline and codebuild and when my YML file runs, the CICD doesn't know if the (my_script).py failed or not because only the subprocess is…
1 2 3
96
97