Open jak-ashuraliev opened 3 years ago
Open your terminal and cd into the root directory of the project. Follow the below steps:
export AWS_ACCESS_KEY_ID=<> export AWS_SECRET_ACCESS_KEY=<> npm install -g serverless@1.38.0 npm install -g serverless-artillery
In order to create a script file, run the following command:
slsart script -e {URL of endpoint to hit with requests} -d 300 -r 40
To Deploy, run this command:
slsart deploy --stage <stack name> --region <region>
To Invoke, run this command:
slsart invoke -p script.yml --stage <stack name> --region <region>
To Remove Stack on AWS, run this command:
slsart remove --stage <stack name> --region <region>
Serverless Artillery 40 requests with cache /users/{userId} with CACHE.
Run Test:
Open your terminal and cd into the root directory of the project. Follow the below steps:
In order to create a script file, run the following command:
To Deploy, run this command:
To Invoke, run this command:
To Remove Stack on AWS, run this command:
Test Results
Time Spent