AWS CodeBuild | Using CodeBuild Flashcards

1
Q

Can I use CodeBuild to automate my release process?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

Yes. CodeBuild is integrated with AWS CodePipeline. You can add a build action and set up a continuous integration and continuous delivery process that runs in the cloud. You can learn how to set up and monitor your builds from the CodePipeline console here.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a build project?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

A build project is used to define how CodeBuild will run a build. It includes information such as where to get the source code, which build environment to use, the build commands to run, and where to store the build output. A build environment is the combination of operating system, programming language runtime, and tools used by CodeBuild to run a build.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do I configure a build project?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

A build project can be configured through the console or the AWS CLI. You specify the source repository location, the runtime environment, the build commands, the IAM role assumed by the container, and the compute class required to run the build. Optionally, you can specify build commands in a buildspec.yml file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which source repositories does CodeBuild support?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

CodeBuild can connect to AWS CodeCommit, S3, GitHub, and GitHub Enterprise to pull source code for builds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which programming frameworks does CodeBuild support?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

CodeBuild provides preconfigured environments for supported versions of Java, Ruby, Python, Go, Node.js, Android, .NET Core for Linux, and Docker. You can also customize your own environment by creating a Docker image and uploading it to the Amazon EC2 Container Registry or the Docker Hub registry. You can then reference this custom image in your build project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What happens when a build is run?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

CodeBuild will create a temporary compute container of the class defined in the build project, load it with the specified runtime environment, download the source code, execute the commands configured in the project, upload the generated artifact to an S3 bucket, and then destroy the compute container. During the build, CodeBuild will stream the build output to the service console and Amazon CloudWatch Logs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do I set up my first build?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

Sign in to the AWS Management Console, create a build project, and then run a build. For an introduction to CodeBuild, see Getting Started, which includes a step-by-step tutorial.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can I use CodeBuild with Jenkins?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

Yes. The CodeBuild Plugin for Jenkins can be used to integrate CodeBuild into Jenkins jobs. The build jobs are sent to CodeBuild, eliminating the need for provisioning and managing the Jenkins worker nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can I view past build results?

Using CodeBuild

AWS CodeBuild | Developer Tools

A

You can access your past build results through the console or the API. The results include outcome (success or failure), build duration, output artifact location, and log location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly