Skip to content

Send regular traffic to your APIs using AWS Lambda and serverless

Notifications You must be signed in to change notification settings

picsoung/serverless-mockAPITraffic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless API traffic mocking function

This project is a simple tool to send regular traffic to your API endpoints.

Pre-requisites

How to use this project

  1. Clone this repo locally
git clone /~https://github.com/picsoung/serverless-mockAPItraffic.git
cd mockAPItraffic
  1. In endpoints.json file customize the array with your own paths and methods

  2. In serverless.yml file change the variable API_URL and USER_KEY for yours

  3. By default the function is called every 2 minutes, you can change the schedule time in the serverless.yml under schedule property

  4. When ready, deploy your function with sls deploy

F.A.Q

Is it possible to send traffic to more than one API?

Yes, you can copy the whole mockAPItraffic block in serverless.yml, rename it differently and add it under the functions array.

About

Send regular traffic to your APIs using AWS Lambda and serverless

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published