title: Error "Property Listeners cannot be empty" occurs when deploy ruby-on-rails project
body: <p>I am newbie in AWS Cloudformation. My Elastic Beanstalk Worker uses Ruby on Rails. The EB is a Stack based on cloudformation template.
  I don’t know why, when I deploy (<code>eb deploy</code>) recently, Event gave the following error message:</p>
  <p><a href="https://i.stack.imgur.com/leh8m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/leh8m.png" alt="enter image description here" /></a></p>
  <p>The <code>AWSEBLoadBalancer</code> is not in <code>Resources:</code> of the template. But I find it in <code>.ebextensions</code> of the source code.</p>
  <pre><code>Resources:
    AWSEBLoadBalancer:
      Properties:
        AccessLoggingPolicy:
          EmitInterval: 5
          Enabled: true
          S3BucketName:
            Ref: LogsBucket
      Type: &quot;AWS::ElasticLoadBalancing::LoadBalancer&quot;
      DependsOn: &quot;LogsBucketPolicy&quot;
  
    LogsBucket:
      DeletionPolicy: Retain
      Type: &quot;AWS::S3::Bucket&quot;
  
    LogsBucketPolicy:
      Properties:
        Bucket:
          Ref: LogsBucket
        PolicyDocument:
          Statement:
            -
              Action:
                - &quot;s3:PutObject&quot;
              Effect: Allow
              Principal:
                AWS:
                  ? &quot;Fn::FindInMap&quot;
                  :
                    - Region2ELBAccountId
                    -
                      Ref: &quot;AWS::Region&quot;
                    - AccountId
              Resource:
                ? &quot;Fn::Join&quot;
                :
                  - &quot;&quot;
                  -
                    - &quot;arn:aws:s3:::&quot;
                    -
                      Ref: LogsBucket
                    - /AWSLogs/
                    -
                      Ref: &quot;AWS::AccountId&quot;
          
  </code></pre>
  <p>Can you please  give me some hints to solve this problem?</p>