Advertisement
uopspop

Untitled

Aug 26th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.98 KB | None | 0 0
  1. AWSTemplateFormatVersion: '2010-09-09'
  2. Transform: AWS::Serverless-2016-10-31
  3. Description: Example Pet Store API written with SpringBoot with the aws-serverless-java-container library
  4.  
  5. Globals:
  6.   Api:
  7.    # API Gateway regional endpoints
  8.     EndpointConfiguration: REGIONAL
  9.  
  10. Resources:
  11.   PetStoreFunction:
  12.     Type: AWS::Serverless::Function
  13.     Properties:
  14.       Handler: com.amazonaws.serverless.sample.springboot.StreamLambdaHandler::handleRequest
  15.       Runtime: java8
  16.       CodeUri: target/serverless-spring-boot-example-1.0-SNAPSHOT.jar
  17.       MemorySize: 1512
  18.       Policies: AWSLambdaBasicExecutionRole
  19.       Timeout: 60
  20.       Events:
  21.         GetResource:
  22.           Type: Api
  23.           Properties:
  24.             Path: /{proxy+}
  25.             Method: any
  26.  
  27. Outputs:
  28.   SpringBootPetStoreApi:
  29.     Description: URL for application
  30.     Value: !Sub 'https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/pets'
  31.     Export:
  32.       Name: SpringBootPetStoreApi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement