./knowledge-base/cdk/bin/historical-research.ts

#!/usr/bin/env node
import "source-map-support/register";
import * as cdk from "aws-cdk-lib";
import { HistoricalResearchStack } from "../lib/historical-research-stack";
import { WafStack } from "../lib/waf-stack";

const app = new cdk.App();

// WAF WebACL(CloudFront用はus-east-1に作成必須)
const wafStack = new WafStack(app, "WafStack", {
  env: {
    account: "903877990773",
    region: "us-east-1",
  },
  description: "WAF WebACL for CloudFront IP restriction (must be us-east-1)",
  crossRegionReferences: true,
});

const mainStack = new HistoricalResearchStack(app, "HistoricalResearchStack", {
  env: {
    account: "903877990773",
    region: "ap-northeast-1",
  },
  description: "Historical Research System - Basic Functionality",
  crossRegionReferences: true,
  webAclArn: wafStack.webAclArn,
});

mainStack.addDependency(wafStack);

app.synth();