Skip to content

Commit

Permalink
Merge pull request #17 from globaldatanet/testwaf
Browse files Browse the repository at this point in the history
HOTFIX write config
  • Loading branch information
daknhh authored Feb 7, 2022
2 parents 0fad267 + c4dd46d commit 51cf7dc
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 51cf7dc

Please sign in to comment.