Yup .ebextensionsis what you are looking for. To learn how to link a source, check out sample applications . There is PHP that you can also see.
For more information on .ebextensions, see this page .
Here is an example of a user command. This could be a file with a name sample.configin the directory .ebextensions:
commands:
success_command:
command: echo "this will be ran after launching"
Be careful if you copy and paste YAML and double-check the format. You can also use JSON, which follows a similar format.
source
share