Where to put Elastic Beanstalk config commands that are only run once on spin-up?
问题 I know I can put commands in my source code in .ebextensions/*.config using the commands array. These are executed on every deploy however. What about if I want to execute a configuration command only once when spinning up a new instance? 回答1: Commands can be run conditionally using the test: modifier. You specify a test to be done. If the test returns 0, the command is run, otherwise it is not. If the last command in your config file touches a file, and the commands above that you only want