Previous: Provisioning PostgreSQL RDS It would not be a complete infrastructure setup without some load testing. We have built this beautiful infrastructure that does pretty much nothing. But how much user load can it handle? Let's find out! Using k6 for Load Testing We are going to use k6 - a modern load testing tool that makes it easy to script and run load tests. First, install k6 by following the instructions on their installation page . Writing a Load Test Script We are going to create a simple load test script that hits our web application's domain. Create a file named load-test.js with the following content: We are going to simulate 10000 virtual users (VUs) over a period of 20 seconds, sending requests to our web application's domain. The following is the script content that you should put in load-test.js : import http from ' k6/http ' ; import { sleep } from ' k6 ' ; export const options = { vus : 10000 , duration : ' 20s ' , }; export default function () { http .…