This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes validation of AWS::URLSuffix (#174)
* Add AWS::URLSuffix to reference value overrides This adds the AWS::URLSuffix to the reference value overrides reference data, as well as to the type used for this value in code. This is a perfectly valid pseudo parameter (as per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html#cfn-pseudo-param-urlsuffix) but was causing an error at https://github.com/nskoufis/cfn-lint/blob/master/src/validator.ts#L680 * Removing package-lock - not decided upon yet * Add a test that ensures that the new pseudo param parses correctly This adds a very simple test that ensures that my minimum working broken example now passes.
- Loading branch information
1 parent
a6fad27
commit 0f6f1b5
Showing
4 changed files
with
23 additions
and
1 deletion.
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
12 changes: 12 additions & 0 deletions
12
testData/valid/yaml/issue-173-url-suffix-pseudo-parameter.yaml
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,12 @@ | ||
Resources: | ||
TestLambdaPermissionEventsRuleSchedule1: | ||
Type: AWS::Lambda::Permission | ||
Properties: | ||
FunctionName: test | ||
Action: lambda:InvokeFunction | ||
Principal: | ||
Fn::Join: | ||
- '' | ||
- - events. | ||
- Ref: AWS::URLSuffix | ||
SourceArn: arn:aws:lambda:us-east-1:123456789012:function:Test |