forked from aws/aws-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow sam to deploy templates contain CFN Lambda Function resour…
…ces with Image package type, and its code is local image uri. (aws#3529) * (fix) allow sam to deploy templates contain CFN Lambda Function resources with Image package type, and its code is local image uri, * make reformat * (fix) fix sam build failure for templates contians function without Docker Metadata * run black format * resolve PR comments
- Loading branch information
Showing
12 changed files
with
192 additions
and
25 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
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
16 changes: 16 additions & 0 deletions
16
tests/integration/testdata/buildcmd/template_cfn_local_prebuilt_image.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,16 @@ | ||
Parameters: | ||
ImageUri: | ||
Type: String | ||
Handler: | ||
Type: String | ||
|
||
Resources: | ||
ImageFunction: | ||
Type: AWS::Lambda::Function | ||
Properties: | ||
PackageType: Image | ||
ImageConfig: | ||
Command: | ||
- !Ref Handler | ||
Code: | ||
ImageUri: !Ref ImageUri |
20 changes: 20 additions & 0 deletions
20
tests/integration/testdata/buildcmd/template_local_prebuilt_image.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 @@ | ||
AWSTemplateFormatVersion : '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
|
||
Parameters: | ||
ImageUri: | ||
Type: String | ||
Handler: | ||
Type: String | ||
|
||
Resources: | ||
|
||
ImageFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
PackageType: Image | ||
ImageUri: !Ref ImageUri | ||
ImageConfig: | ||
Command: | ||
- !Ref Handler | ||
Timeout: 600 |
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
Oops, something went wrong.