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.
Add support for AWS::Partition pseudo parameter (#179)
* 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 * Adding build artifacts so we can use them directly. * Remove checked in lib directory Accidentally included * 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. * Add AWS::Partition pseudo parameter to ref overrides This is a valid pseudo parameter as documented here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html#cfn-pseudo-param-partition This adds support for it, because at the moment it causes critical validation failures. Tests to follow. * Add test for AWS::Partition pseudo parameter This adds a simple test that ensures that the AWS::Partition pseudo parameter is correctly handled and parsed as valid. * Update CHANGELOG.md
- Loading branch information
1 parent
89b899f
commit 1567397
Showing
5 changed files
with
40 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
Resources: | ||
GatewayMethodGet: | ||
Type: AWS::ApiGateway::Method | ||
Properties: | ||
HttpMethod: GET | ||
RequestParameters: | ||
method.request.path.sample: true | ||
ResourceId: abc123 | ||
RestApiId: abc123 | ||
ApiKeyRequired: true | ||
AuthorizationType: NONE | ||
Integration: | ||
IntegrationHttpMethod: POST | ||
Type: AWS_PROXY | ||
Uri: | ||
Fn::Join: | ||
- '' | ||
- - 'arn:' | ||
- Ref: AWS::Partition | ||
- ":apigateway:" | ||
- Ref: AWS::Region | ||
- ":lambda:path/2015-03-31/functions/" | ||
- someFunctionName | ||
- "/invocations" | ||
MethodResponses: [] |