This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
sam_20161031_globals.yaml
86 lines (77 loc) · 1.79 KB
/
sam_20161031_globals.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: A hello world application.
Globals:
Function:
Handler: index.handler
Runtime: nodejs6.10
CodeUri: src/
DeadLetterQueue:
Type: SNS
TargetArn: arn:aws:sns:us-east-1:84969EXAMPLE:DeadLetterQueue
Description: somethingCool
MemorySize: 512
Timeout: 10
VpcConfig:
SecurityGroupIds:
- SGID0
SubnetIds:
- SID0
Environment:
Variables:
VAR0: 0
Tags:
TAG0: tag0
Tracing: PassThrough
KmsKeyArn: arn:aws:sns:us-east-1:84969EXAMPLE:KmsKeyArn
AutoPublishAlias: live
DeploymentPreference:
Type: Linear10PercentEvery10Minutes
Api:
Name: ServerlessRestApi
DefinitionUri: s3://s3-eu-west-1.amazonaws.com/s3test.example.com
CacheClusterEnabled: True
CacheClusterSize: 1024M
Variables:
VAR1: 1
EndpointConfiguration: EDGE
MethodSettings:
- HttpMethod: GET
ResourcePath: /*
MetricsEnabled: 'true'
DataTraceEnabled: 'true'
BinaryMediaTypes:
- image~1gif
- image~1png
Cors: example.com
SimpleTable:
SSESpecification:
SSEEnabled: True
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
VpcConfig:
SecurityGroupIds:
- SGID1
SubnetIds:
- SID1
Tags:
TAG1: tag1
Environment:
Variables:
VAR2: shouldBe2
HelloWorldAPI:
Type: AWS::Serverless::Api
Properties:
StageName: Prod
EndpointConfiguration: REGIONAL
BinaryMediaTypes:
- image~1exe
Variables:
VAR2: 2
VAR3: 3
HelloWorldTable:
Type: AWS::Serverless::SimpleTable
Properties:
TableName: example-table