-
Couldn't load subscription status.
- Fork 2.4k
fix: Fail when Intrinsics are in SourceVPC list instead of IntrinsicsSourceVPC #1999
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
435d8bf
7a5fc1d
9628882
9fd3077
cbc060b
8db75eb
8ba5ef8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| Globals: | ||
| Api: | ||
| Auth: | ||
| ResourcePolicy: | ||
| SourceVpcBlacklist: [{"Ref":"SomeParameter"}] | ||
|
|
||
| Parameters: | ||
| SomeParameter: | ||
| Type: String | ||
| Default: param | ||
|
|
||
| Resources: | ||
| MyFunction: | ||
| Type: AWS::Serverless::Function | ||
| Properties: | ||
| InlineCode: | | ||
| exports.handler = async (event) => { | ||
| const response = { | ||
| statusCode: 200, | ||
| body: JSON.stringify('Hello from Lambda!'), | ||
| }; | ||
| return response; | ||
| }; | ||
| Handler: index.handler | ||
| Runtime: nodejs12.x | ||
| Events: | ||
| Api: | ||
| Type: Api | ||
| Properties: | ||
| Method: Put | ||
| Path: /get |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| Globals: | ||
| Api: | ||
| Auth: | ||
| ResourcePolicy: | ||
| SourceVpcWhitelist: [{"Ref":"SomeParameter"}] | ||
|
|
||
| Parameters: | ||
| SomeParameter: | ||
| Type: String | ||
| Default: param | ||
|
|
||
| Resources: | ||
| MyFunction: | ||
| Type: AWS::Serverless::Function | ||
| Properties: | ||
| InlineCode: | | ||
| exports.handler = async (event) => { | ||
| const response = { | ||
| statusCode: 200, | ||
| body: JSON.stringify('Hello from Lambda!'), | ||
| }; | ||
| return response; | ||
| }; | ||
| Handler: index.handler | ||
| Runtime: nodejs12.x | ||
| Events: | ||
| Api: | ||
| Type: Api | ||
| Properties: | ||
| Method: Put | ||
| Path: /get |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "errorMessage": "Invalid Serverless Application Specification document. Number of errors found: 1. SourceVpcBlacklist must be a list of strings. Use IntrinsicVpcBlacklist instead for values that use Intrinsic Functions" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. That is the implementation of the InvalidDocumentException output There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏽 |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "errorMessage": "Invalid Serverless Application Specification document. Number of errors found: 1. SourceVpcWhitelist must be a list of strings. Use IntrinsicVpcWhitelist instead for values that use Intrinsic Functions" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.