-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAM transform replace AutoPublishCodeSha256 (#3497)
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
test/fixtures/templates/good/transform/auto_publish_code_sha256.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,25 @@ | ||
Transform: AWS::Serverless-2016-10-31 | ||
Parameters: | ||
Basepath: | ||
Type: String | ||
CodeBucket: | ||
Type: String | ||
GitCommit: | ||
Type: String | ||
Resources: | ||
LambdaFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
AutoPublishAlias: live | ||
AutoPublishCodeSha256: !Ref GitCommit | ||
CodeUri: | ||
Bucket: !Ref CodeBucket | ||
Key: !Sub ${ Basepath }/lambda.zip | ||
DeploymentPreference: | ||
Enabled: false | ||
FunctionName: !Sub ${ AWS::StackName } | ||
Handler: lambda.handler | ||
MemorySize: 256 | ||
Runtime: python3.12 | ||
Timeout: 30 | ||
Tracing: PassThrough |
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