Attach function to an existing 3s bucket


#1

Hello, I have the following serverless.yaml

service: abc-audit

provider:
  name: aws
  runtime: nodejs8.10
  memorySize: 128
  timeout: 120
  environment:
    DELIVERY_STREAM_NAME: ${file(./config.js):${opt:stage}.DELIVERY_STREAM_NAME}
  iamRoleStatements:
    - Effect: "Allow"
      Action:
        "s3:*"
      Resource:
        Fn::Join:
          - ""
          - - "arn:aws:s3:::*"
plugins:
  serverless-plugin-existing-s3

functions:
  abc:
    handler: index.handler
    events:
      - s3:
          bucket: ${file(./config.js):${opt:stage}.BUCKET}
          event: s3:ObjectCreated:*
          rules:
            - suffix: .gz

when I deploy the function, I get the following error:

Serverless: Operation failed!

  Serverless Error ---------------------------------------

  An error occurred: S3BucketMbmlogslampstackprod - mbm-logs-lamp-stack-prod already exists.

I am using https://github.com/matt-filion/serverless-external-s3-event plugging
What am I missing?