Skip to content

Commit

Permalink
HOTFIX write config
Browse files Browse the repository at this point in the history
  • Loading branch information
daknhh committed Feb 7, 2022
1 parent ac7327e commit c4dd46d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/plattform-wafv2-cdk-automation-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,11 @@ export class PlattformWafv2CdkAutomationStack extends cdk.Stack {
}
}

const {Capacity,RuleCapacities,DeployedRuleGroupCapacities,DeployedRuleGroupIdentifier,DeployedRuleGroupNames, ...tempconfig} = props.runtimeprops
const options = { flag : "w", force: true };
const { promises: fsp } = require("fs");
(async () => {
try {
await fsp.writeFile(process.env.PROCESS_PARAMETERS,JSON.stringify(tempconfig,null,2),options);
await fsp.writeFile(process.env.PROCESS_PARAMETERS,JSON.stringify(props.config,null,2),options);
} catch (error) {
console.log("Error " + error)
}
Expand Down

0 comments on commit c4dd46d

Please sign in to comment.