1. CodeBuild란?

요금

2. CodeBuild 세팅

buildspec.yml 생성

https://docs.aws.amazon.com/codebuild/latest/userguide/getting-started-cli-create-build-spec.html

# 사용 중인 빌드 사양 표준의 버전
version: 0.2

# CodeBuild에 명령을 실행하도록 지시할 수 있는 빌드 단계로 install, pre_build, build 로 구성
phases:
  install:
    runtime-versions:
      java: corretto11
  pre_build:
    commands:
      - echo Nothing to do in the pre_build phase...
  build:
    commands:
      - echo Build started on `date`
      - mvn install
  post_build:
    commands:
      - echo Build completed on `date`

# CodeBuild가 출력 버킷에 업로드하는 빌드 출력 아티팩트 세트
artifacts:
  # 빌드 출력에 포함할 파일
  files:
    - target/messageUtil-1.0.jar

3. 빌드 프로젝트 생성

  1. 개발자 도구 > CodeBuild > 시작하기 에서 프로젝트 만들기 버튼 클릭
  2. 프로젝트 구성