

Amazon CodeCatalyst는 더 이상 신규 고객에게 공개되지 않습니다. 기존 고객은 정상적으로 서비스를 계속 이용할 수 있습니다. 자세한 내용은 [CodeCatalyst에서 마이그레이션하는 방법](migration.md) 단원을 참조하십시오.

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

# Devfile 이벤트
<a name="devenvironment-devfile-events"></a>

현재 CodeCatalyst는 devfile의 `postStart` 이벤트만 지원합니다. 자세한 내용은 Devfile.io 설명서에서 [postStartObject](https://devfile.io/docs/2.0.0/adding-event-bindings#post-start-object) 섹션을 참조하세요.

다음 예시에서는 devfile에 `postStart` 이벤트 바인딩을 추가하는 방법을 보여줍니다.

```
commands:
  - id: executescript
    exec:
      component: test
      commandLine: "./projects/devfiles/script.sh"
  - id: updateyum
    exec:
      component: test
      commandLine: "yum -y update --security"
events:
  postStart:
    - updateyum
    - executescript
```

시작 후 개발 환경은 지정된 `postStart` 명령을 정의된 순서대로 실행합니다. 명령이 실패하면 개발 환경이 계속 실행되고 실행 출력이 `/aws/mde/logs` 아래의 로그에 저장됩니다.