-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic to handle Ref AWS::NoValue in list (#3563)
* Add logic to handle Ref AWS::NoValue in list * use context instead a bunch of params
- Loading branch information
Showing
12 changed files
with
410 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
[ | ||
{ | ||
"Filename": "test/fixtures/templates/integration/ref-no-value.yaml", | ||
"Id": "bc432adb-6b22-c519-4df7-26cd9aa0c67f", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 3, | ||
"LineNumber": 24 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"IamRole1", | ||
"Properties", | ||
"Tags", | ||
3 | ||
], | ||
"Start": { | ||
"ColumnNumber": 11, | ||
"LineNumber": 22 | ||
} | ||
}, | ||
"Message": "'Key' is a required property", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "Make sure that Resources properties that are required exist", | ||
"Id": "E3003", | ||
"ShortDescription": "Required Resource properties are missing", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#required" | ||
} | ||
}, | ||
{ | ||
"Filename": "test/fixtures/templates/integration/ref-no-value.yaml", | ||
"Id": "c9effb29-057b-04bc-7889-c95a6d3de51d", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 3, | ||
"LineNumber": 24 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"IamRole1", | ||
"Properties", | ||
"Tags", | ||
3 | ||
], | ||
"Start": { | ||
"ColumnNumber": 11, | ||
"LineNumber": 22 | ||
} | ||
}, | ||
"Message": "'Key' is a required property", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "Validates tag values to make sure they have unique keys and they follow pattern requirements", | ||
"Id": "E3024", | ||
"ShortDescription": "Validate tag configuration", | ||
"Source": "https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html" | ||
} | ||
}, | ||
{ | ||
"Filename": "test/fixtures/templates/integration/ref-no-value.yaml", | ||
"Id": "2ed7922b-1cd5-30ae-0c5f-918f69c9b782", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 15, | ||
"LineNumber": 26 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"IamRole2", | ||
"Properties" | ||
], | ||
"Start": { | ||
"ColumnNumber": 5, | ||
"LineNumber": 26 | ||
} | ||
}, | ||
"Message": "'AssumeRolePolicyDocument' is a required property", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "Make sure that Resources properties that are required exist", | ||
"Id": "E3003", | ||
"ShortDescription": "Required Resource properties are missing", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#required" | ||
} | ||
}, | ||
{ | ||
"Filename": "test/fixtures/templates/integration/ref-no-value.yaml", | ||
"Id": "edfc8e64-ad37-e697-8fb7-5c89d2ff1735", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 15, | ||
"LineNumber": 39 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"CloudFront1", | ||
"Properties" | ||
], | ||
"Start": { | ||
"ColumnNumber": 5, | ||
"LineNumber": 39 | ||
} | ||
}, | ||
"Message": "'DistributionConfig' is a required property", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "Make sure that Resources properties that are required exist", | ||
"Id": "E3003", | ||
"ShortDescription": "Required Resource properties are missing", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#required" | ||
} | ||
}, | ||
{ | ||
"Filename": "test/fixtures/templates/integration/ref-no-value.yaml", | ||
"Id": "aabc1fd4-1a8c-eca6-cedc-2270876f6523", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 25, | ||
"LineNumber": 43 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"CloudFront2", | ||
"Properties", | ||
"DistributionConfig" | ||
], | ||
"Start": { | ||
"ColumnNumber": 7, | ||
"LineNumber": 43 | ||
} | ||
}, | ||
"Message": "'DefaultCacheBehavior' is a required property", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "Make sure that Resources properties that are required exist", | ||
"Id": "E3003", | ||
"ShortDescription": "Required Resource properties are missing", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#required" | ||
} | ||
}, | ||
{ | ||
"Filename": "test/fixtures/templates/integration/ref-no-value.yaml", | ||
"Id": "9409bd79-0f38-7a61-1eb7-a4705b6e650a", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 15, | ||
"LineNumber": 49 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"CloudFront2", | ||
"Properties", | ||
"DistributionConfig", | ||
"DefaultCacheBehavior", | ||
"Fn::If", | ||
2 | ||
], | ||
"Start": { | ||
"ColumnNumber": 13, | ||
"LineNumber": 49 | ||
} | ||
}, | ||
"Message": "'TargetOriginId' is a required property", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "Make sure that Resources properties that are required exist", | ||
"Id": "E3003", | ||
"ShortDescription": "Required Resource properties are missing", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#required" | ||
} | ||
}, | ||
{ | ||
"Filename": "test/fixtures/templates/integration/ref-no-value.yaml", | ||
"Id": "6e5a7510-66ea-63ee-96d4-08a42d6340e4", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 15, | ||
"LineNumber": 49 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"CloudFront2", | ||
"Properties", | ||
"DistributionConfig", | ||
"DefaultCacheBehavior", | ||
"Fn::If", | ||
2 | ||
], | ||
"Start": { | ||
"ColumnNumber": 13, | ||
"LineNumber": 49 | ||
} | ||
}, | ||
"Message": "'ViewerProtocolPolicy' is a required property", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "Make sure that Resources properties that are required exist", | ||
"Id": "E3003", | ||
"ShortDescription": "Required Resource properties are missing", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#required" | ||
} | ||
} | ||
] |
Oops, something went wrong.