Provision an HA pair

Set replicas: 2 or pass two explicit names. Each publisher gets its
own Netskope record, token, and workload.

1
2
3
4
5
6
7
8
9
const publisher = new AwsPublisher("publisher", {
namePrefix: "pub-eu",
replicas: 2,
tenantUrl,
apiToken,
subnetId,
securityGroupIds: [securityGroupId],
keyName,
});

This creates pub-eu-1 and pub-eu-2 in the same subnet.

For multi-AZ HA, create one component per subnet:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
new AwsPublisher("publisher-a", {
names: ["pub-eu-a"],
tenantUrl,
apiToken,
subnetId: subnetA,
securityGroupIds: [securityGroupId],
});

new AwsPublisher("publisher-b", {
names: ["pub-eu-b"],
tenantUrl,
apiToken,
subnetId: subnetB,
securityGroupIds: [securityGroupId],
});

Attach both publishers to the same Netskope private apps in the Netskope
admin console.