Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AWSTemplateFormatVersion: '2010-09-09'
- Description: Example Pet Store API written with SpringBoot with the aws-serverless-java-container
- library
- Globals:
- Api:
- EndpointConfiguration: REGIONAL
- Outputs:
- SpringBootPetStoreApi:
- Description: URL for application
- Export:
- Name: SpringBootPetStoreApi
- Value:
- Fn::Sub: https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/pets
- Resources:
- PetStoreFunction:
- Properties:
- CodeUri: s3://serverless-spring-boot-example-bucket/93f8f7e93c62fc4388ba50e4c93f5589
- Events:
- GetResource:
- Properties:
- Method: any
- Path: /{proxy+}
- Type: Api
- Handler: com.amazonaws.serverless.sample.springboot.StreamLambdaHandler::handleRequest
- MemorySize: 1512
- Policies: AWSLambdaBasicExecutionRole
- Runtime: java8
- Timeout: 60
- Type: AWS::Serverless::Function
- Transform: AWS::Serverless-2016-10-31
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement