title: YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in "<reader>"
body: <p>I'm trying to upload my Laravel project to elastic beanstalk. I've added MySQL on the server. </p>
  
  <p>I created a <code>.ebextensions/init.config</code>:</p>
  
  <pre><code>container_commands:
      01initdb: 
          command: "php artisan migrate"
      02initdb
          command: "php artisan db:seed"
  </code></pre>
  
  <p>Now, I'm getting this error:</p>
  
  <blockquote>
    <p>Unable to deploy application version: The configuration file .ebextensions/init.config in application version cbt-source-10 contains invalid YAML or JSON. YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in "", line 2, column 1: 01initdb: ^ , JSON exception: Invalid JSON: Unexpected character (c) at position 0.. Update the configuration file.</p>
  </blockquote>
  
  <p>Just for more reference I also added these things:</p>
  
  <p><strong>database.php</strong></p>
  
  <pre><code>define('RDS_HOSTNAME', $_SERVER['RDS_HOSTNAME']);
  define('RDS_USERNAME', $_SERVER['RDS_USERNAME']);
  define('RDS_PASSWORD', $_SERVER['RDS_PASSWORD']);
  define('RDS_DB_NAME', $_SERVER['RDS_DB_NAME']);
  //in connections array
  'mysql' =&gt; [
      'driver' =&gt; 'mysql',
      'url' =&gt; env('DATABASE_URL'),
      'host' =&gt; RDS_HOSTNAME,
      'port' =&gt; env('DB_PORT', '3306'),
      'database' =&gt; RDS_DB_NAME,
      'username' =&gt; RDS_USERNAME,
      'password' =&gt; RDS_PASSWORD,
      'unix_socket' =&gt; env('DB_SOCKET', ''),
      'charset' =&gt; 'utf8mb4',
      'collation' =&gt; 'utf8mb4_unicode_ci',
      'prefix' =&gt; '',
      'prefix_indexes' =&gt; true,
      'strict' =&gt; true,
      'engine' =&gt; null,
      'options' =&gt; extension_loaded('pdo_mysql') ? array_filter([
          PDO::MYSQL_ATTR_SSL_CA =&gt; env('MYSQL_ATTR_SSL_CA'),
      ]) : [],
  ],
  </code></pre>
  
  <p><strong>AppServiceProvider.php</strong></p>
  
  <pre><code>public function register()
  {
     Schema::defaultStringLength(191);
  }
  </code></pre>
  
  <p>I've also run the command <code>zip -d nameofyourzipfile.zip __MACOSX/\*</code></p>
  
  <p>I understand that I could probably just SSH into elastic beanstalk and some how and run the artisan commands after the project is deployed, but at this moment I'm just trying to learn elastic beanstalk. I'm probably a lot better off running the commands, b</p>