Configure CodeBuild

Configure CodeBuild

  1. Make CodeBuild

    • Access to CodeBuild
    • Select Build projects
    • Select Create build project

ROSA

  1. For Project configuration

    • Project name: RosaVotingAppBuild

ROSA

  1. We configure Source

    • Source
      • Source provider: AWS CodeCommit
      • Repository: rosa-voting-app
      • Reference type: Branch
      • Branch: master

ROSA

  1. Continue configuration
  • Environment
    • Image: Managed image
    • Operating system: Ubuntu
    • Runtime: Standard
    • Image: standard:5.0
    • Privileged: true

ROSA

  1. New service role: RosaVotingAppBuildServiceRole

ROSA

    • Buildspec
      • Use a buildspec file

ROSA

  1. Select Create build project

ROSA

  1. Finish creating project build then we start Start build

ROSA

  1. Test code build project

    • On the AWS console, run Start build for the newly created project. Check the successful status of the building project and check that the echo commands in the buildspec have been executed

ROSA

In the following sections, we will edit the buildspec file to complete the CI/CD flow