-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
37 lines (34 loc) · 1.02 KB
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
grouch-message-function
Sample SAM Template for grouch-message-function
Resources:
GrouchMessageFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: GrouchMessageFunction
Handler: grouch.message.function.FunctionHandler
Runtime: java11
CodeUri: .
Timeout: 30
MemorySize: 1512
Environment:
Variables:
FUNCTION_NAME: MessageFunction
Policies:
- Statement:
- Sid: LambdaInvokePolicy
Effect: Allow
Action: lambda:InvokeFunction
Resource: "*"
Outputs:
GrouchMessageFunction:
Description: "Hello World Lambda Function ARN"
Value: !GetAtt GrouchMessageFunction.Arn
Export:
Name:
Fn::Sub: ${AWS::StackName}-GrouchMessageFunction
GrouchMessageFunctionIamRole:
Description: "Implicit IAM Role created for Hello World function"
Value: !GetAtt GrouchMessageFunction.Arn