title: S3 event not triggering/showing up in Lambda UI; built with Serverless CLI/serverless-plugin-existing-s3
body: <p>The Lambda is not triggered by events and the event created does not appear in the Lambda GUI, though the SNS and SQS triggers do.</p>
  
  <p>Here is the <code>serverless.yml</code> (note: I've removed my ARNs because I'm paranoid):</p>
  
  <pre><code>service: my-service
  
  provider:
    name: aws
    runtime: python3.7
    iamRoleStatements:
      - Effect: "Allow"
        Action:
          - "s3:PutObject"
        Resource:
          Fn::Join:
            - ""
            - - "bucket-arn or *"
  
  plugins:
    - serverless-plugin-existing-s3
  
  layers:
    boto3_downgrade_layer:
      package:
        artifact: boto3_downgrade_layer.zip
      allowedAccounts:
        - '*'
  
  functions:
    call_textract:
      handler: src/call_textract.lambda_handler
      description: "Kicks off the Textract process."
      events:
        - existings3:
            bucket: startrac-files
            event: s3:ObjectCreated:*
            rules:
              - prefix: input2/
              - suffix: .pdf
        - existings3:
            bucket: startrac-files
            event: s3:ObjectCreated:*
            rules:
              - prefix: input1/
              - suffix: .pdf
      layers:
        - arn
  
    get_textract_output:
      handler: src/get_textract_output.lambda_handler
      description: "Retrieves the Textracted data and writes it to a file to S3."
      events:
        - sqs: arn
      layers:
        - arn
  
    parse_textract_output:
      handler: src/parse_textract_output.lambda_handler
      description: "Parses the Textracted output and performs file ops in S3 based on the results."
      events:
        - sns: arn
      layers:
        - arn
  
  </code></pre>
  
  <p>To deploy, I run <code>sls deploy -v</code> and then <code>sls s3deploy</code> as per the docs (no errors), but no love. I should see the S3 event trigger in the Lambda's Configuration section of the UI (as I see the SQS/SNS triggers there), but I don't. </p>
  
  <p>I could very well be using Serverless wrong here as I just discovered it today.</p>
  
  <p>Edit 1: Just wanted to specify that my Function called <code>call_textract</code> should be <strong>triggered by an S3 event</strong>, not trigger the event.</p>
  
  <p>Edit 2: I updated my code as suggested. The event trigger showed up in my GUI, except it's on the right (triggered by), not on the left of the Function where I need it. Seems like I'm using Lambda wrong here.</p>