-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix: prevent IndexError with integration URIs without .Arn #1901
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6a8912e
Use fnGetAtt instead of ref
568666e
Return gracefully
f705e03
chore: update develop with latest release branch (#1822)
mndeveci 5d0e645
feature: Support for Lambda Code Signing (#53) (#1825) (#1828)
mndeveci 6c01c39
Release v1.31.0 (#1836)
mndeveci 270f7c4
feat(images): additions to SAM spec (#1844)
sriram-mv febde6e
Support DLQ, RetryPolicy properties for EventBridgeRule,Schedule even…
ejafarli acde9bc
fix: propagate condition to sqs queue policy for sqssubscription (#1798)
hawflau 48cf143
chore: Remove biased language from pylintrc (#1847)
aahung 04c585c
feat: Stream Analytics (#1865)
mndeveci 9f267a4
chore: version bump 1.33 (#1866)
mndeveci f6e370a
fix: Support new CodeDeploy ManagedPolicy (#1858)
jfuss fd840a3
fix: Update Slack invite link (#1877)
jfuss 3e2edec
feature: Support for custom checkpointing (#1883)
vinayaksood 5658413
Fix: Description in AWS::Serverless::HttpApi (#1884)
hawflau 75230ba
Update AWS::S3::Bucket properties (#1885)
hawflau fe838d7
Fix: Replaced invalid AMQ managed policy by providing policy statemen…
qingchm a617205
chore: bump version 1.34.0 (#1892)
hawflau 4112fcf
test: Add simple integration tests (#1797)
mingkun2020 2c77424
fix: Better Error Handling of Intrinsics (#1896)
awood45 4cdc265
Add integration test
9618694
Merge branch 'develop' into fix-function-alias
8c19a09
Add trailing newline
0848e38
Update comment
1a0c464
Add UT
08088b7
make black
ecb089c
Update comment
70b61e3
Add integ test for default alias
6ead5e4
Update tests
7d43bb1
Add TODO comment
364eaa6
Add E2E test
0e160ab
Function output in constant
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
integration/resources/expected/single/function_alias_with_http_api_events.json
This file contains hidden or 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,10 @@ | ||
[ | ||
{ "LogicalResourceId":"MyLambdaFunction", "ResourceType":"AWS::Lambda::Function" }, | ||
{ "LogicalResourceId":"MyLambdaFunctionAliaslive", "ResourceType":"AWS::Lambda::Alias" }, | ||
{ "LogicalResourceId":"MyLambdaFunctionRole", "ResourceType":"AWS::IAM::Role" }, | ||
{ "LogicalResourceId":"MyLambdaFunctionVersion", "ResourceType":"AWS::Lambda::Version" }, | ||
{ "LogicalResourceId":"MyLambdaFunctionFooEventPermission", "ResourceType":"AWS::Lambda::Permission" }, | ||
{ "LogicalResourceId":"MyLambdaFunctionBarEventPermission", "ResourceType":"AWS::Lambda::Permission" }, | ||
{ "LogicalResourceId":"MyHttpApi", "ResourceType":"AWS::ApiGatewayV2::Api" }, | ||
{ "LogicalResourceId":"MyHttpApiApiGatewayDefaultStage", "ResourceType":"AWS::ApiGatewayV2::Stage" } | ||
] |
7 changes: 7 additions & 0 deletions
7
integration/resources/expected/single/function_with_http_api_events.json
This file contains hidden or 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,7 @@ | ||
[ | ||
{ "LogicalResourceId":"MyLambdaFunction", "ResourceType":"AWS::Lambda::Function" }, | ||
{ "LogicalResourceId":"MyLambdaFunctionRole", "ResourceType":"AWS::IAM::Role" }, | ||
{ "LogicalResourceId":"MyLambdaFunctionFooEventPermission", "ResourceType":"AWS::Lambda::Permission" }, | ||
{ "LogicalResourceId":"MyHttpApi", "ResourceType":"AWS::ApiGatewayV2::Api" }, | ||
{ "LogicalResourceId":"MyHttpApiApiGatewayDefaultStage", "ResourceType":"AWS::ApiGatewayV2::Stage" } | ||
] |
23 changes: 23 additions & 0 deletions
23
integration/resources/templates/single/function_alias_with_http_api_events.yaml
This file contains hidden or 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,23 @@ | ||
Resources: | ||
MyHttpApi: | ||
Type: AWS::Serverless::HttpApi | ||
MyLambdaFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
AutoPublishAlias: live | ||
Handler: index.handler | ||
Runtime: nodejs12.x | ||
CodeUri: ${codeuri} | ||
Events: | ||
FooEvent: | ||
Type: HttpApi | ||
Properties: | ||
ApiId: | ||
Ref: MyHttpApi | ||
BarEvent: | ||
Type: HttpApi | ||
Properties: | ||
ApiId: | ||
Ref: MyHttpApi | ||
Path: /bar | ||
Method: POST |
22 changes: 22 additions & 0 deletions
22
integration/resources/templates/single/function_with_http_api_events.yaml
This file contains hidden or 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,22 @@ | ||
Resources: | ||
MyHttpApi: | ||
Type: AWS::Serverless::HttpApi | ||
MyLambdaFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
Handler: index.handler | ||
Runtime: nodejs12.x | ||
CodeUri: ${codeuri} | ||
Events: | ||
FooEvent: | ||
Type: HttpApi | ||
Properties: | ||
ApiId: | ||
Ref: MyHttpApi | ||
BarEvent: | ||
Type: HttpApi | ||
Properties: | ||
ApiId: | ||
Ref: MyHttpApi | ||
Path: /bar | ||
Method: POST |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.