What is the difference between commands and container_commands configuration keys in Beanstalk?
<p>When we setup Elastic Beanstalk extensions in .ebextensions</p>
<p>I wonder what is the difference between <code>commands</code> and <code>container_commands</code> in Beanstalk configuration file keys.</p>
<p>My command is like this</p>
<pre><code>container_commands:
  04_insert_app:
    command: &quot;cat .ebextensions/insertapp_job.txt &gt; /etc/cron.d/insertapp_job &amp;&amp; chmod 644 /etc/cron.d/insertapp_job&quot;
    leader_only: true
</code></pre>
<p>container_commands works fine.</p>
<p>commands: has error <code>.ebextensions/insertapp_job.txt</code> not found</p>