- Ensure you have
jq
v1.6 or higher installed. - Change
cdk.json
from:
{
"app": "npx ts-node --prefer-ts-exts bin/iem-dashboard.ts",
"context": {
}
}
to:
{
"app": "npx ts-node --prefer-ts-exts bin/iem-dashboard.ts && cat cdk.out/IemDashboardStack.template.json| jq '. |= del(.Rules) | del(.Parameters)'> cdk.out/clean.template.json",
"context": {
}
}
- Deploy the
cdk.out/clean.template.json
file