Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Message Formatting #252

Closed
razcloud opened this issue Jul 1, 2022 · 0 comments
Closed

[BUG] Message Formatting #252

razcloud opened this issue Jul 1, 2022 · 0 comments
Assignees
Labels
blue bug Something isn't working good first issue Good for newcomers

Comments

@razcloud
Copy link
Contributor

razcloud commented Jul 1, 2022

Thanks @razcloud! It looks great now.

P.S.: There seems to be a space missing after the "Message" string, but it's a minor thing 馃槂 .

$ cfn-guard validate -d template.json -r rules.guard
template.json Status = FAIL
FAILED rules
rules.guard/aws_s3_bucket_versioning_defined    FAIL
---
Evaluating data template.json against rules rules.guard
Number of non-compliant resources 1
Resource = WebsiteBucket4326D7C2 {
  Type      = AWS::S3::Bucket
  CDK-Path  = LandingPageFrontend/Website/Bucket/Resource
  Rule = aws_s3_bucket_versioning_defined {
    ALL {
      Check =  VersioningConfiguration EXISTS   {
        Message= VersioningConfiguration is not defined
        RequiredPropertyError {
          PropertyPath = /Resources/WebsiteBucket4326D7C2/Properties[L:5,C:20]
          MissingProperty = VersioningConfiguration
          Reason = Could not find key VersioningConfiguration inside struct at path /Resources/WebsiteBucket4326D7C2/Properties[L:5,C:20]
          Code:
                3.    "WebsiteBucket4326D7C2": {
                4.      "Type": "AWS::S3::Bucket",
                5.      "Properties": {
                6.        "AccessControl": "PublicRead"
                7.      },
                8.      "Metadata": {
        }
      }
    }
  }
}

Originally posted by @alexpulver in #202 (comment)

@razcloud razcloud added bug Something isn't working blue good first issue Good for newcomers labels Jul 1, 2022
wkexiang added a commit that referenced this issue Jul 8, 2022
wkexiang added a commit that referenced this issue Jul 8, 2022
@wkexiang wkexiang mentioned this issue Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blue bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants