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