in lib/bottlerocket-construct/index.ts [13:41]
constructor(scope: cdk.Construct, id: string) {
super(scope, id);
// Setup platform team
const accountID = process.env.CDK_DEFAULT_ACCOUNT!
const platformTeam = new team.TeamPlatform(accountID)
const teams: Array<ssp.Team> = [platformTeam];
// AddOns for the cluster.
const addOns: Array<ssp.ClusterAddOn> = [
new AwsLoadBalancerControllerAddOn,
new ssp.NginxAddOn,
new ssp.ArgoCDAddOn,
new ssp.CalicoAddOn,
new ssp.MetricsServerAddOn,
new ssp.ContainerInsightsAddOn,
];
const stackID = `${id}-blueprint`;
const clusterProvider = new ssp.AsgClusterProvider({
version: eks.KubernetesVersion.V1_20,
machineImageType: eks.MachineImageType.BOTTLEROCKET
});
new ssp.EksBlueprint(scope, { id: stackID, teams, addOns, clusterProvider }, {
env: {
region: 'us-east-1'
}
});
}