-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add property to update lambda version when lambda layer is upda…
…ted (#3661)
- Loading branch information
Showing
24 changed files
with
855 additions
and
21 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
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
.../resources/expected/combination/function_with_alias_all_properties_and_layer_version.json
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,22 @@ | ||
[ | ||
{ | ||
"LogicalResourceId": "MyLambdaFunction", | ||
"ResourceType": "AWS::Lambda::Function" | ||
}, | ||
{ | ||
"LogicalResourceId": "MyLambdaFunctionRole", | ||
"ResourceType": "AWS::IAM::Role" | ||
}, | ||
{ | ||
"LogicalResourceId": "MyLambdaFunctionAliasLive", | ||
"ResourceType": "AWS::Lambda::Alias" | ||
}, | ||
{ | ||
"LogicalResourceId": "MyLambdaFunctionVersion", | ||
"ResourceType": "AWS::Lambda::Version" | ||
}, | ||
{ | ||
"LogicalResourceId": "MyLayer", | ||
"ResourceType": "AWS::Lambda::LayerVersion" | ||
} | ||
] |
21 changes: 21 additions & 0 deletions
21
...resources/templates/combination/function_with_alias_all_properties_and_layer_version.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,21 @@ | ||
Resources: | ||
MyLambdaFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
CodeUri: ${codeuri} | ||
Handler: index.handler | ||
Runtime: nodejs20.x | ||
AutoPublishAlias: Live | ||
AutoPublishAliasAllProperties: true | ||
Layers: | ||
- !Ref MyLayer | ||
|
||
MyLayer: | ||
Type: AWS::Serverless::LayerVersion | ||
Properties: | ||
ContentUri: ${contenturi} | ||
RetentionPolicy: Delete | ||
PublishLambdaVersion: true | ||
Description: test | ||
Metadata: | ||
SamTransformTest: true |
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
20 changes: 20 additions & 0 deletions
20
...nslator/input/function_with_aliasallproperties_and_lambda_layer_publishversion_false.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,20 @@ | ||
Resources: | ||
MinimalFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
CodeUri: s3://sam-demo-bucket/hello.zip | ||
Handler: hello.handler | ||
Runtime: python3.10 | ||
AutoPublishAlias: live | ||
AutoPublishAliasAllProperties: true | ||
VersionDescription: sam-testing | ||
Layers: | ||
- !Ref TestEnvLayer | ||
|
||
TestEnvLayer: | ||
Type: AWS::Serverless::LayerVersion | ||
Properties: | ||
LayerName: test-env-dependencies | ||
Description: Dependencies for test env implementation | ||
ContentUri: s3://bucket/key | ||
PublishLambdaVersion: false |
Oops, something went wrong.