Devfile events - Amazon CodeCatalyst

Amazon CodeCatalyst is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see How to migrate from CodeCatalyst.

Devfile events

Currently, CodeCatalyst only supports postStart events in your devfile. For more information, see postStartObject in the Devfile.io documentation.

The following example shows you how to add postStart event bindings in your devfile.

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

After startup, your Dev Environment will execute the specified postStart commands in the order they are defined. If a command fails, the Dev Environment will continue running and the execution output is stored in the logs under /aws/mde/logs.