Skip to content

Instantly share code, notes, and snippets.

@theawesomenayak
Created October 24, 2020 19:48
Show Gist options
  • Save theawesomenayak/c9dbf3c18711e930a0ad496155e35d1a to your computer and use it in GitHub Desktop.
Save theawesomenayak/c9dbf3c18711e930a0ad496155e35d1a to your computer and use it in GitHub Desktop.
PetStoreFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: PetStoreFunction
Handler: com.petstore.App::handleRequest
Runtime: java11
MemorySize: 512
Environment:
Variables:
PARAM1: VALUE
Events:
AddPet:
Type: Api
Properties:
Path: /pets
Method: put
GetPets:
Type: Api
Properties:
Path: /pets
Method: get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment