Advertisement
uopspop

Untitled

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