-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.yaml
35 lines (31 loc) · 1.03 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
product-service-serverless
Sample SAM Template for product-serverless-service
Globals:
Function:
Timeout: 20
Resources:
ProductServiceFunction:
Type: AWS::Serverless::Function
Properties:
Handler: io.micronaut.function.aws.proxy.MicronautLambdaHandler::handleRequest
Runtime: java11
MemorySize: 512
Events:
ProxyProductApi:
Type: Api
Properties:
Path: /{proxy+}
Method: ANY
Outputs:
ProductService:
Description: "API Gateway endpoint URL for Prod stage product service"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/products/"
ProductServiceFunction:
Description: "Product Service Lambda Function ARN"
Value: !GetAtt ProductServiceFunction.Arn
ProductServiceFunctionIamRole:
Description: "Implicit IAM Role created for product Service function"
Value: !GetAtt ProductServiceFunctionIamRole.Arn