title: Elasticbeanstalk .ebextensions not taking effect
body: <p>I am deploying a go application to elastic beanstalk using circleci.
  I have a .ebextensions folder with the following two files in it
  <strong>01_filebeat.config</strong></p>
  <pre><code>files:
    &quot;/etc/filebeat/filebeat.yml&quot;:
      mode: &quot;000755&quot;
      owner: root
      group: root
      content: |
        filebeat.inputs:
            - type: log
              enabled: true
              paths:
                 - /var/log/web*.log
                 - /tmp/application.INFO
                 - /tmp/application.WARNING
                 - /tmp/application.ERROR
                 - /var/log/nginx/access.log
                 - /var/log/nginx/error.log
              fields_under_root: true
        output.elasticsearch:
          hosts: [&quot;FILEBEAT-HOST-PLACEHOLDER:443&quot;]
          protocol: &quot;https&quot;
        setup.ilm:
          enabled: false
  commands:
    1_command:
      command: &quot;curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-7.8.0-x86_64.rpm&quot;
      cwd: /home/ec2-user
    2_command:
      command: &quot;rpm -ivh --replacepkgs filebeat-oss-7.8.0-x86_64.rpm&quot;
      cwd: /home/ec2-user
    3_command:
      command: &quot;/etc/init.d/filebeat start&quot;
  </code></pre>
  <p><strong>02_nginx.config</strong></p>
  <pre><code>files:
    &quot;/etc/nginx/conf.d/01-timeout.conf&quot;:
       mode: &quot;000644&quot;
       owner: root
       group: root
       content: |
         keepalive_timeout 300s;
         proxy_connect_timeout 300s;
         proxy_send_timeout 300s;
         proxy_read_timeout 300s;
         fastcgi_send_timeout 300s;
         fastcgi_read_timeout 300s;
  commands:
    nginx_reload:
       command: &quot;sudo service nginx reload&quot;
  </code></pre>
  <p>The first file for the filebeat agent runs as expected. However, the extension 02_nginx.config doesnt seem to run and no files end up in /etc/nginx/conf.d/</p>
  <p>Does anyone see anything wrong with this approach or have any recommendations on what I could dd to investigate this issue further?</p>
  <p>I checked the file /var/log/eb-activity.log and there are no errors in there</p>
  <p>Thank you
  Damien</p>