in lib/scratchpad/index.ts [10:33]
constructor(scope: cdk.Construct, id: string) {
super(scope, id);
// AddOns for the cluster.
const addOns: Array<ssp.ClusterAddOn> = [
new ssp.AwsLoadBalancerControllerAddOn,
new ssp.NginxAddOn,
new ssp.MetricsServerAddOn,
new ssp.ClusterAutoScalerAddOn
];
const stackID = `${id}-blueprint`;
const clusterProvider = new MngClusterProvider( {
desiredSize: 3,
maxSize: 3,
version: KubernetesVersion.V1_20
});
new ssp.EksBlueprint(scope, { id: stackID, addOns, clusterProvider }, {
env: {
region: 'us-east-2',
},
});
}