Serverless Force Bench
npm install sfbSFB(Serverless Force Bench) is a tool for bench testing on AWS Serverless.
- node -v >= v16.16.0
- npm -v >= 9.6.6
- docker -v >= 24.0.2
- Setting AWS Credentials
``bash`
npm i -g sfb
`bash`
sfb help
Before using CLI, you need to first deploy the base stack in your chosen region.
> Permissions: Managing stacks usually requires administrator permissions.
`bashdeploy a new stack or update stack
sfb deploy
$3
`bash
remove the stack
sfb removeremove the stack in specify region
sfb remove --region
`$3
`bash
sfb regions
`3. Tasks
> Permissions: Using the CLI usually requires ordinary permissions:
> - lambda:invokeFunction
> - ec2:describeRegions
> - cloudformation:describeStacks
$3
`bash
show how create a new task
sfb create --helpcreate a new task in current region
sfb create --name test --type API --n 10 --c 2 --compute Lambda --url https://api.comcreate a new task in specific region(s)
sfb create --name test --type API --n 10 --c 2 --compute Fargate --delay 30 --url https://api.com --regions ap-southeast-1,us-east-2`$3
`bash
list all tasks
sfb lsshow a specific task detail
sfb ls [taskId]`$3
`bash
remove all tasks
sfb rmremove a specific task
sfb rm [taskId]`$3
`bash
abort a specific task
sfb abort
``- https://aws.amazon.com/lambda/pricing/
- https://aws.amazon.com/step-functions/pricing/
- https://aws.amazon.com/sns/pricing/
- https://aws.amazon.com/ecs/pricing/
- https://aws.amazon.com/batch/pricing/
- https://aws.amazon.com/kinesis/data-streams/pricing/