Skip to content

Commit

Permalink
docs: fix policy in safe deployments example and documentation (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma authored and keetonian committed Aug 6, 2019
1 parent 738f7bf commit 527c190
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/safe_lambda_deployments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ resource:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs6.10
Runtime: nodejs8.10
AutoPublishAlias: live
DeploymentPreference:
Type: Linear10PercentEvery10Minutes
Expand Down Expand Up @@ -162,8 +162,8 @@ resource:
- Effect: "Allow"
Action:
- "lambda:InvokeFunction"
Resource: !Ref MyLambdaFunction.Version
Runtime: nodejs6.10
Resource: !GetAtt MyLambdaFunction.Arn
Runtime: nodejs8.10
FunctionName: 'CodeDeployHook_preTrafficHook'
DeploymentPreference:
Enabled: false
Expand Down Expand Up @@ -286,7 +286,7 @@ Hooks are extremely powerful because:
- Effect: "Allow"
Action:
- "lambda:InvokeFunction"
Resource: !Ref MyLambdaFunction.Version
Resource: !GetAtt MyLambdaFunction.Arn
Checkout the lambda_safe_deployments_ folder for an example for how to create SAM template that contains a hook function.

Expand Down
2 changes: 1 addition & 1 deletion examples/2016-10-31/lambda_safe_deployments/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Resources:
- Effect: "Allow"
Action:
- "lambda:InvokeFunction"
Resource: !Ref safeTest.Version
Resource: !GetAtt safeTest.Arn
Runtime: nodejs8.10
FunctionName: 'CodeDeployHook_preTrafficHook'
DeploymentPreference:
Expand Down

0 comments on commit 527c190

Please sign in to comment.