I’m trying to run serverless with AWS and got the following error:
Serverless plugin “./vendor/bref/bref” not found. Make sure it’s installed and listed in the “plugins” section of your serverless config file.
my serverlessfile,yml:
service: sqstodynamo
provider:
name: aws
region: us-east-2
runtime: provided
iamRoleStatements:
- Effect: Allow
Action:
- sqs:SendMessage
- sqs:ReceiveMessage
- sqs:DeleteMessage
- sqs:GetQueueAttributes
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: {file(config.yml):AWS_SQS_ARN}
- Effect: Allow
Action:
- dynamodb:BatchGetItem
- dynamodb:GetItem
- dynamodb:Query
- dynamodb:Scan
- dynamodb:BatchWriteItem
- dynamodb:PutItem
- dynamodb:UpdateItem
Resource: {file(config.yml):AWS_DYNAMODB_TABLE_ARN}
plugins:
- ./vendor/bref/bref
functions:
sqstodynamo:
handler: index.php
description: ‘PHP Function used as a callback for SQS to migrate messages to DynamoDB’
layers:
- ${bref:layer.php-74}
Exclude files from deployment
package:
exclude:
- ‘tests/**’