-
Notifications
You must be signed in to change notification settings - Fork 3
/
template.yml
42 lines (39 loc) · 893 Bytes
/
template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
Demo of Sam
We try out SAM
Globals:
Function:
Timeout: 5
Resources:
HelloGopher:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./
Handler: hello-gopher
Runtime: go1.x
Environment:
Variables:
my-cool-variable: "maybe-not-so-cool"
Architectures:
- x86_64
Events:
HelloEndPoint:
Type: Api
Properties:
Path: '/api/hellogopher'
Method: post
SQSLambda:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./sqslambda
Handler: sqs-lambda
Runtime: go1.x
Architectures:
- x86_64
Events:
SqsEvents:
Type: SQS
Properties:
Queue: "my-awesome-queue"