cdk-validator-cfnguard
cdk-validator-cfnguard copied to clipboard
Validation failure
Hello,
I'm having issues to run the Validator when running cdk synth
.
Here is the output:
Validation Report
-----------------
╔════════════════════════════════════╗
║ Plugin Report ║
║ Plugin: cdk-validator-cfnguard ║
║ Version: 0.0.54 ║
║ Status: failure ║
╚════════════════════════════════════╝
Metadata:
error: Validation plugin 'cdk-validator-cfnguard' failed:
CfnGuardValidator plugin failed processing cfn-guard results.
Please create an issue https://github.com/cdklabs/cdk-validator-cfnguard/issues/new
Error: Error: spawnSync /Users/myuser/Projects/my-infra/node_modules/@cdklabs/cdk-validator-cfnguard/bin/macos/cfn-guard ENOBUFS
Policy Validation Report Summary
╔════════════════════════╤═════════╗
║ Plugin │ Status ║
╟────────────────────────┼─────────╢
║ cdk-validator-cfnguard │ failure ║
╚════════════════════════╧═════════╝
Validation failed. See the validation report above for details
@amouly Exactly the same error at my end too. Did you manage to resolve this?
@waseem-uddin no, and can't find anybody willing to help neither.
I got this same error this morning. Is anyone out there watching these issues? @andywick-aws perhaps?
Additional information.
I was able to run cfn-guard
standalone against the cdk synth
ed CloudFormation template.
So this seems more like a problem with how the validator is trying to invoke the cfn-guard
program from within the cdk synth
operation (Node program scope) than a problem with the rules itself.
Looks like it might be a limitation of spawnSync
... with a suggested fix to use child_process
instead - with async handling of stdout: https://stackoverflow.com/questions/63796633/spawnsync-bin-sh-enobufs .