Create AWS CodeBuild

Create AWS CodeBuild

CodeBuild is an AWS service that supports the continuous integration of changes from source code into the system through compiling, testing, and packaging the software product to prepare it for the next phase. next implementation phase. CodeBuild supports compilation tools and execution environment for most popular programming languages ​​such as .NET Core, Java, Ruby, Python, Go, Node.js, Android… Using CodeBuild saves us from having to spend a lot of time setting up build servers with complex configurations, and also support scalability and optimization when performing multiple builds concurrently.

Image Node

  1. Go to AWS CodeBuild

    • Select Build projects
    • Select Create build project

Image Node

  1. In the Create build project interface

    • Enter aws-fcj-management-build for Project name

Image Node

  1. For Source
    • We choose Source provider as AWS CodeCommit
    • Repository is aws-fcj-management of AWS CodeCommit
    • Select Branch
    • Select master

Image Node

  1. For Enviroments

    • Select Managed image
    • Select Operating system as Amazon Linux 2
    • Select Run times as Standard
    • Select image
    • Must tick Privileged

Image Node

  1. Role for those of you who have not run it, choose New service role, in case you have run CodeBuild, choose Existing service role

Image Node

  1. Set the environment value as follows:

    • IMAGE_REPO_NAME and value is aws-fcj-management
    • IMAGE_TAG_PREFIX and value is version-1

Image Node

  1. Configure the file path Buildspec

    • Select Use a buildspec file
    • Enter Buildspec name as aws/codebuild/buildspec.yaml

Image Node

  1. Select Amazon S3 and select prepared S3 Bucket

Image Node

  1. Configure Log

    • Select CloudWatch
    • Enter Group name
    • Crazy Stream name
    • Select Create build project

Image Node

  1. Finish creating build project

Image Node