Pin existing CloudFormation stack name via stackName property so the live stack is not affected. Construct ID now follows the org kebab-case standard.
17 lines
455 B
JavaScript
17 lines
455 B
JavaScript
#!/usr/bin/env node
|
|
// infra/bin/app.js
|
|
const cdk = require("aws-cdk-lib");
|
|
const { LedgerFlowStack } = require("../lib/ledgerflow-stack");
|
|
|
|
const app = new cdk.App();
|
|
|
|
new LedgerFlowStack(app, "ledgerflow", {
|
|
stackName: "LedgerFlow",
|
|
env: {
|
|
account: process.env.CDK_DEFAULT_ACCOUNT,
|
|
region: process.env.CDK_DEFAULT_REGION || "us-east-1",
|
|
},
|
|
description: "LedgerFlow B2B Accounting — Lambda + API Gateway + DynamoDB",
|
|
});
|
|
|
|
app.synth();
|