Devfile events - Amazon CodeCatalyst

Amazon CodeCatalyst will no longer be open to new customers starting on November 7, 2025. If you would like to use the service, please sign up prior to November 7, 2025. 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.