-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patharticles.yaml
26 lines (25 loc) · 838 Bytes
/
articles.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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Example Article API written with Spring with the aws-serverless-java-container library
Resources:
ArticleFunction:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.sample.spring.LambdaHandler::handleRequest
Runtime: java8
CodeUri: build/libs/serverless-spring-boilerplate-1.0.jar
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Timeout: 20
Events:
GetResource:
Type: Api
Properties:
Path: /{proxy+}
Method: any
Outputs:
ArticleApi:
Description: URL for application
Value: !Sub 'https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/articles'
Export:
Name: ArticleApi