This article contains the various IP addresses k6 uses to generate load for cloud based tests and other services. The most common reason for needing this information is to open your firewall to allow tests to reach the staging/test environment from a cloud based test. If you are streaming results to k6 Cloud utilizing k6 run myscript.js -o cloud you may only need to allow traffic against ingest.k6.io on port 443.
Other methods, such as header or query parameter whitelisting, may also fit your requirements. Refer to this article for more information on those methods.
k6 uses AWS for cloud load generators. For the IP addresses used in the different load zones and filtering methods please refer directly to Amazon.
If you prefer to view the ranges directly, within the above link, the ip-ranges.json file provides the updated list of IP addresses used by our load generators. In order to know which IP ranges can be used, you need to filter the service of type EC2 and the region of the selected load zone/s in your test configuration.
The zone codes are mapped as follows:
|us-east-1||US East (Ashburn)|
|us-east-2||US East (Columbus)|
|us-west-1||US West (Palo Alto)|
|us-west-2||US West (Portland)|
|ap-northeast-1||Asia Pacific (Tokyo)|
|ap-northeast-2||Asia Pacific (Seoul)|
|ap-southeast-1||Asia Pacific (Singapore)|
|ap-southeast-2||Asia Pacific (Sydney)|
|ap-south-1||Asia Pacific (Mumbai)|
|sa-east-1||South America (São Paulo)|