# Documentation: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html # commands: # command name: # command: command to run # cwd: working directory # env: # variable name: variable value # test: conditions for command # ignoreErrors: true commands: command1: command: git commit -m "This is a comment." cwd: /home/user/working/ command2: command: ls cwd: /etc/