This project is a simple tool to send regular traffic to your API endpoints.
- an AWS account
- AWS CLI configured
- An API deployed and monitored by 3scale
- Serverless installed
- Clone this repo locally
git clone /~https://github.com/picsoung/serverless-mockAPItraffic.git
cd mockAPItraffic
-
In
endpoints.json
file customize the array with your own paths and methods -
In
serverless.yml
file change the variableAPI_URL
andUSER_KEY
for yours -
By default the function is called every 2 minutes, you can change the schedule time in the
serverless.yml
underschedule
property -
When ready, deploy your function with
sls deploy
Yes, you can copy the whole mockAPItraffic
block in serverless.yml
, rename it differently and add it under the functions
array.