What is Amazon CodeBuild?
Amazon CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for popular programming languages and build tools such as Apache Maven, Gradle, and more. You can also customize build environments in CodeBuild to use your own build tools. CodeBuild scales automatically to meet peak build requests.
CodeBuild provides these benefits:
-
Fully managed – CodeBuild eliminates the need to set up, patch, update, and manage your own build servers.
-
On demand – CodeBuild scales on demand to meet your build needs. You pay only for the number of build minutes you consume.
-
Out of the box – CodeBuild provides preconfigured build environments for the most popular programming languages. All you need to do is point to your build script to start your first build.
For more information, see Amazon CodeBuild
Sign up for an Amazon Web Services account
If you do not have an Amazon Web Services account, use the following procedure to create one.
To sign up for Amazon Web Services
Open http://www.amazonaws.cn/
and choose Sign Up. Follow the on-screen instructions.
Amazon sends you a confirmation email after the sign-up process is
complete. At any time, you can view your current account activity and manage your account by
going to http://www.amazonaws.cn/
Secure IAM users
After you sign up for an Amazon Web Services account, safeguard your administrative user by turning on multi-factor authentication (MFA). For instructions, see Enable a virtual MFA device for an IAM user (console) in the IAM User Guide.
To give other users access to your Amazon Web Services account resources, create IAM users. To secure your IAM users, turn on MFA and only give the IAM users the permissions needed to perform their tasks.
For more information about creating and securing IAM users, see the following topics in the IAM User Guide:
How to run CodeBuild
You can use the Amazon CodeBuild or Amazon CodePipeline console to run CodeBuild. You can also automate the running of CodeBuild by using the Amazon Command Line Interface (Amazon CLI) or the Amazon SDKs.
As the following diagram shows, you can add CodeBuild as a build or test action to the build or test stage of a pipeline in Amazon CodePipeline. Amazon CodePipeline is a continuous delivery service that you can use to model, visualize, and automate the steps required to release your code. This includes building your code. A pipeline is a workflow construct that describes how code changes go through a release process.
To use CodePipeline to create a pipeline and then add a CodeBuild build or test action, see Use CodeBuild with CodePipeline. For more information about CodePipeline, see the Amazon CodePipeline User Guide.
The CodeBuild console also provides a way to quickly search for your resources, such as
repositories, build projects, deployment applications, and pipelines. Choose
Go to resource or press the / key, and then enter
the name of the resource. Any matches appear in the list. Searches are case insensitive.
You only see resources that you have permissions to view. For more information, see
Viewing resources in the console.
Pricing for CodeBuild
For information, see CodeBuild pricing
How do I get started with CodeBuild?
We recommend that you complete the following steps:
-
Learn more about CodeBuild by reading the information in Concepts.
-
Experiment with CodeBuild in an example scenario by following the instructions in Getting started using the console.
-
Use CodeBuild in your own scenarios by following the instructions in Plan a build.