

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 자체 호스팅 러너에 대한 프라이빗 레지스트리 자격 증명 구성
<a name="private-registry-sample-configure-runners"></a>

다음 지침에 따라 자체 호스팅 러너에 대한 레지스트리 자격 증명을 구성합니다.

**참고**  
이러한 자격 증명은 이미지가 프라이빗 레지스트리의 자격 증명으로 재정의되는 경우에만 사용됩니다.

------
#### [ AWS Management Console ]

1. [https://console.aws.amazon.com/codesuite/codebuild/home](https://console.aws.amazon.com/codesuite/codebuild/home) AWS CodeBuild 콘솔을 엽니다.

1. 빌드 프로젝트를 생성하거나 기존 프로젝트를 선택합니다. 자세한 내용은 [빌드 프로젝트 만들기(콘솔)](create-project.md#create-project-console) 및 [빌드 프로젝트 설정 변경(콘솔)](change-project.md#change-project-console) 섹션을 참조하세요.

1.  **환경**에서 **추가 구성**을 선택합니다.

1.  **추가 구성**에서 **레지스트리 자격 증명 - 선택** 사항으로에서 보안 암호의 이름 또는 ARN AWS Secrets Manager 을 입력합니다.  
![레지스트리 자격 증명 구성입니다.](http://docs.aws.amazon.com/ko_kr/codebuild/latest/userguide/images/registry-credential.png)

------
#### [ AWS CLI ]

1. 새 프로젝트를 생성하려면 **create-project** 명령을 실행합니다.

   ```
   aws codebuild create-project \
       --name {{project-name}} \
       --source type={{source-type}},location={{source-location}} \
       --environment "type={{environment-type}},image={{image}},computeType={{compute-type}},registryCredential={credentialProvider=SECRETS_MANAGER,credential={{secret-name-or-arn}}},imagePullCredentialsType=CODEBUILD|SERVICE_ROLE" \
       --artifacts type={{artifacts-type}} \
       --service-role arn:aws:iam::{{account-ID}}:role/service-role/{{service-role-name}}
   ```

1. 기존 프로젝트를 업데이트하려면 **update-project** 명령을 실행합니다.

   ```
   aws codebuild update-project \
       --name {{project-name}} \
       --environment "type={{environment-type}},image={{image}},computeType={{compute-type}},registryCredential={credentialProvider=SECRETS_MANAGER,credential={{secret-name-or-arn}}}"
   ```

------