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?
相关问题
- slurm: use a control node also for computing
- How to generate 12 digit unique number in redshift
- Use awslogs with kubernetes 'natively'
- Assume/switch role in aws toolkit for eclipse 2.0
- 'no SavedModel bundles found!' on tensorfl
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- how many objects are returned by aws s3api list-ob
- AWS S3 in rails - how to set the s3_signature_vers
- Passthrough input to output in AWS Step Functions
- I cannot locate production log files on Elastic Be
- ImportError: cannot import name 'joblib' f
- Static IP for Auto Scale in AWS
- Step function exceeding the maximum number of char
On Windows this should work:
Note that I had to change the
test
command from Jim Flanagan's answer.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 to run once check for the existence of that file, then those commands will only run the first time.
On Windows it would be something like this