You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cfn-guard validate -o json does not include CDK-Path #251
let aws_s3_bucket_resources = Resources.*[ Type == 'AWS::S3::Bucket' ]
rule aws_s3_bucket_versioning_defined {
when %aws_s3_bucket_resources not empty {
%aws_s3_bucket_resources {
Properties {
VersioningConfiguration exists <<VersioningConfiguration is not defined>>
}
}
}
}
changed the title [-]cfn-guard validate does not include CDK-Path when using -o json option[/-][+]cfn-guard validate -o json does not include CDK-Path[/+]on Jul 1, 2022
changed the title [-]cfn-guard validate -o json does not include CDK-Path[/-][+]cfn-guard validate `-o json` does not include CDK-Path[/+]on Jul 1, 2022
changed the title [-]cfn-guard validate `-o json` does not include CDK-Path[/-][+]cfn-guard validate `-o json` does not include `CDK-Path`[/+]on Jul 1, 2022
changed the title [-]cfn-guard validate `-o json` does not include `CDK-Path`[/-][+]`cfn-guard validate -o json` does not include `CDK-Path`[/+]on Jul 1, 2022
--print-json is supposed to print JSON for abstract syntax tree for the clauses in the rule, which tells us more details about how the clauses get evaluated.
-o json just changes the format of output summary that's emitted for failures, with error message from the rule, if any.
We will keep this issue opened, and make the --help docs less ambiguous.
Hey @alexpulver due to work required to add this, and it leading to possibly a breaking change with existing consumers of the JSON output we have chosen to not add this to the current JSON output.
Activity
[-]cfn-guard validate does not include CDK-Path when using -o json option[/-][+]cfn-guard validate -o json does not include CDK-Path[/+][-]cfn-guard validate -o json does not include CDK-Path[/-][+]cfn-guard validate `-o json` does not include CDK-Path[/+][-]cfn-guard validate `-o json` does not include CDK-Path[/-][+]cfn-guard validate `-o json` does not include `CDK-Path`[/+][-]cfn-guard validate `-o json` does not include `CDK-Path`[/-][+]`cfn-guard validate -o json` does not include `CDK-Path`[/+]razcloud commentedon Jul 5, 2022
Noted @alexpulver Will bring this back to the team.
akshayrane commentedon Jul 11, 2022
--print-jsonis supposed to print JSON for abstract syntax tree for the clauses in the rule, which tells us more details about how the clauses get evaluated.-o jsonjust changes the format of output summary that's emitted for failures, with error message from the rule, if any.We will keep this issue opened, and make the
--helpdocs less ambiguous.alexpulver commentedon Jul 12, 2022
Thank you!
joshfried-aws commentedon Apr 18, 2024
Hey @alexpulver due to work required to add this, and it leading to possibly a breaking change with existing consumers of the JSON output we have chosen to not add this to the current JSON output.
Thanks,
alexpulver commentedon Apr 19, 2024
Hi @joshfried-aws, thanks for the update 🙏.