in lib/fargate-construct/index.ts [10:39]
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 ssp.ArgoCDAddOn
];
// TODO - what is with dynatrace?
const fargateProfiles: Map<string, eks.FargateProfileOptions> = new Map([
["dynatrace", { selectors: [{ namespace: "dynatrace" }] }]
]);
const stackID = `${id}-blueprint`
const clusterProvider = new ssp.FargateClusterProvider({
fargateProfiles,
version: eks.KubernetesVersion.V1_20
})
new ssp.EksBlueprint(scope, { id: stackID, teams, addOns, clusterProvider }, {
env: {
region: 'us-east-1'
}
})
}
}