Skip to content

Commit 6a278ff

Browse files
authored
chore: merge pull request #1462 from awslabs/release/v1.21.0
2 parents 9de1f6a + 4535deb commit 6a278ff

File tree

536 files changed

+8318
-1599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

536 files changed

+8318
-1599
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ matrix:
2222
install:
2323
# Install the code requirements
2424
- mkdir $HOME/bin-black
25-
- wget -O $HOME/bin-black/black https://github.com/python/black/releases/download/19.3b0/black
25+
- wget -O $HOME/bin-black/black https://github.com/python/black/releases/download/19.10b0/black
2626
- chmod +x $HOME/bin-black/black
2727
- export PATH=$PATH:$HOME/bin-black
2828
- black --version

DEVELOPMENT_GUIDE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Setup Python locally using `pyenv`_
3333
We format our code using [Black](https://github.com/python/black) and verify the source code is black compliant
3434
in Appveyor during PRs. You can find installation instructions on [Black's docs](https://black.readthedocs.io/en/stable/installation_and_usage.html).
3535

36-
After installing, you can run our formatting through our Makefile by `make black-format` or integrating Black directly in your favorite IDE (instructions
36+
After installing, you can check your formatting through our Makefile by running `make black-check`. To automatically update your code to match our formatting, please run `make black`. You can also integrate Black directly in your favorite IDE (instructions
3737
can be found [here](https://black.readthedocs.io/en/stable/editor_integration.html))
3838

3939
Pre-commit

HOWTO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Resources:
130130
Type: AWS::Serverless::Function
131131
Properties:
132132
Handler: index.handler
133-
Runtime: nodejs4.3
133+
Runtime: nodejs12.x
134134
CodeUri:
135135
# !Ref function allows you to fetch value
136136
# of parameters and other resources at runtime
@@ -158,7 +158,7 @@ Resources:
158158
FunctionName: !Sub "mylambda-${FunctionNameSuffix}"
159159

160160
Handler: index.handler
161-
Runtime: nodejs4.3
161+
Runtime: nodejs12.x
162162
CodeUri: s3://bucket/key
163163
```
164164

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ environment that lets you locally build, test, debug, and deploy applications de
2929

3030
**Detailed References:** Explains SAM commands and usage in depth.
3131
* [CLI Commands](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-command-reference.html)
32-
* [SAM Template Specification](https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md)
32+
* [SAM Template Specification](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification.html)
3333
* [Policy Templates](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-policy-templates.html)
3434

3535
## Why SAM

bin/sam-translate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def transform_template(input_file_path, output_file_path):
101101
with open(output_file_path, "w") as f:
102102
f.write(cloud_formation_template_prettified)
103103

104-
print ("Wrote transformed CloudFormation template to: " + output_file_path)
104+
print("Wrote transformed CloudFormation template to: " + output_file_path)
105105
except InvalidDocumentException as e:
106106
errorMessage = reduce(lambda message, error: message + " " + error.message, e.causes, e.message)
107107
LOG.error(errorMessage)

docs/cloudformation_compatibility.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ DeadLetterQueue All
6262
DeploymentPreference All
6363
Layers All
6464
AutoPublishAlias Ref of a CloudFormation Parameter Alias resources created by SAM uses a LocicalId <FunctionLogicalId+AliasName>. So SAM either needs a string for alias name, or a Ref to template Parameter that SAM can resolve into a string.
65+
AutoPublishCodeSha256 All
6566
ReservedConcurrentExecutions All
6667
EventInvokeConfig All
6768
============================ ================================== ========================

docs/safe_lambda_deployments.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ This will:
6262

6363
- Create an Alias with ``<alias-name>``
6464
- Create & publish a Lambda version with the latest code & configuration
65-
derived from the ``CodeUri`` property
65+
derived from the ``CodeUri`` property. Optionally it is possible to specify
66+
property `AutoPublishCodeSha256` that will override the hash computed for
67+
Lambda ``CodeUri`` property.
6668
- Point the Alias to the latest published version
6769
- Point all event sources to the Alias & not to the function
6870
- When the ``CodeUri`` property of ``AWS::Serverless::Function`` changes,
@@ -93,7 +95,7 @@ resource:
9395
Type: AWS::Serverless::Function
9496
Properties:
9597
Handler: index.handler
96-
Runtime: nodejs8.10
98+
Runtime: nodejs12.x
9799
AutoPublishAlias: live
98100
DeploymentPreference:
99101
Type: Linear10PercentEvery10Minutes
@@ -163,7 +165,7 @@ resource:
163165
Action:
164166
- "lambda:InvokeFunction"
165167
Resource: !GetAtt MyLambdaFunction.Arn
166-
Runtime: nodejs8.10
168+
Runtime: nodejs12.x
167169
FunctionName: 'CodeDeployHook_preTrafficHook'
168170
DeploymentPreference:
169171
Enabled: False

examples/2016-10-31/alexa_skill/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Resources:
77
Properties:
88
CodeUri: s3://<bucket>/alexa_skill.zip
99
Handler: index.handler
10-
Runtime: nodejs6.10
10+
Runtime: nodejs12.x
1111
Events:
1212
AlexaSkillEvent:
1313
Type: AlexaSkill

examples/2016-10-31/api_aws_iam_auth/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Resources:
1515
Properties:
1616
CodeUri: .
1717
Handler: index.handler
18-
Runtime: nodejs8.10
18+
Runtime: nodejs12.x
1919
Events:
2020
GetRoot:
2121
Type: Api

examples/2016-10-31/api_backend/template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Resources:
66
Type: AWS::Serverless::Function
77
Properties:
88
Handler: index.get
9-
Runtime: nodejs6.10
9+
Runtime: nodejs12.x
1010
CodeUri: src/
1111
Policies:
1212
- DynamoDBReadPolicy:
@@ -25,7 +25,7 @@ Resources:
2525
Type: AWS::Serverless::Function
2626
Properties:
2727
Handler: index.put
28-
Runtime: nodejs6.10
28+
Runtime: nodejs12.x
2929
CodeUri: src/
3030
Policies:
3131
- DynamoDBCrudPolicy:
@@ -44,7 +44,7 @@ Resources:
4444
Type: AWS::Serverless::Function
4545
Properties:
4646
Handler: index.delete
47-
Runtime: nodejs6.10
47+
Runtime: nodejs12.x
4848
CodeUri: src/
4949
Policies:
5050
- DynamoDBCrudPolicy:

0 commit comments

Comments
 (0)