text: const { AwsCdkTypeScriptApp, DependenciesUpgradeMechanism } = require('projen');
  
  const AUTOMATION_TOKEN = 'PROJEN_AUTOMATION_TOKEN';
  
  const project = new AwsCdkTypeScriptApp({
    cdkVersion: '1.82.0',
    name: 'eks-cicd-codebuild',
    cdkDependencies: [
      '@aws-cdk/aws-ec2',
      '@aws-cdk/aws-ecr',
      '@aws-cdk/aws-eks',
      '@aws-cdk/aws-iam',
      '@aws-cdk/aws-codebuild',
      '@aws-cdk/aws-codecommit',
      '@aws-cdk/aws-events-targets',
    ],
    depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({
      workflowOptions: {
        labels: ['auto-approve', 'auto-merge'],
        secret: AUTOMATION_TOKEN,
      },
    }),
    autoApproveOptions: {
      secret: 'GITHUB_TOKEN',
      allowedUsernames: ['pahud'],
    },
    defaultReleaseBranch: 'main',
  });
  
  const common_exclude = ['cdk.out', 'cdk.context.json', 'dockerAssets.d', 'yarn-error.log'];
  project.npmignore.exclude('images', ...common_exclude);
  project.gitignore.exclude(...common_exclude);
  
  
  project.synth();
  