-
Notifications
You must be signed in to change notification settings - Fork 15
/
load_test.ts
32 lines (28 loc) · 1.24 KB
/
load_test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import { LoadTestStack } from '../lib/load_test_stack';
const app = new cdk.App();
new LoadTestStack(app, 'LoadTestStack', {
env: {
// AWS region to deploy this stack to. (Required for defining ALB access logging)
region: 'us-west-2',
// Aws Account ID to deploy this stack to. (Also required only if you specify certificateArn below.)
// account: '123456789012',
},
// Amazon Certificate Manager certificate ARN for Locust Web UI ALB.
// ALB can be accessed with HTTP if you don't specify this argument.
// certificateArn: "",
// CIDRs that can access Locust Web UI ALB.
// It is highly recommended to set this CIDR as narrowly as possible
// when you do not enable the authentication option below.
allowedCidrs: ['127.0.0.1/32'],
// You can enable password auth for Locust web UI uncommenting lines below:
// webUsername: 'admin',
// webPassword: 'passw0rd',
// Any arbitrary command line options to pass to Locust.
// An example would be:
// Exclude Tags - List of tags to exclude from the test, so only tasks
// with no matching tags will be executed.
// additionalArguments: ['--exclude-tags', 'tag1', 'tag2'],
});