-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample-0-sb.conf
281 lines (236 loc) · 7.58 KB
/
sample-0-sb.conf
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
## Environment variables used by xsh utility `aws/cfn/deploy`.
## Reference: https://github.com/xsh-lib/aws
# Format version of this config file.
# Used to check the compatibility with xsh utility.
VERSION=0.1.0
## Below configs can be overridden in command line while calling `aws/cfn/deploy`.
# STACK_NAME=<StackName>
#
# Required: Yes
# Default: None
# Valid Characters: [a-zA-Z0-9-]
# ---
# Example:
# STACK_NAME=MyStack
STACK_NAME=sample-0
# ENVIRONMENT=[Name]
#
# Required: No
# Default: None
# Valid Characters: [a-zA-Z0-9-]
# Description:
# Environment name, set whatever a name you like or leave it empty.
# If set this, the full stack name will look like: {STACK_NAME}-{ENVIRONMENT}
# ---
# Example:
# ENVIRONMENT=DEV
ENVIRONMENT=sb
# RANDOM_STACK_NAME_SUFFIX=[0 | 1]
#
# Required: No
# Default: None
# Valid Values:
# 1: Suffix stack name as:
# {STACK_NAME}-{RANDOM_STACK_NAME_SUFFIX}
# or: {STACK_NAME}-{ENVIRONMENT}-{RANDOM_STACK_NAME_SUFFIX}
# Usually set this for test purpose.
# 0: No suffix on stack name.
# ---
# Example:
# RANDOM_STACK_NAME_SUFFIX=1
RANDOM_STACK_NAME_SUFFIX=1
# DEPENDS=( <ParameterName>=<NestedTemplate> )
#
# Required: Yes if has nested template, otherwise No
# Default: None
# Syntax:
# <ParameterName>: The name of template parameter that is referred at the
# value of nested template property `TemplateURL`.
# <NestedTemplate>: A local path or a S3 URL starting with `s3://` or
# `https://` pointing to the nested template.
# The nested templates at local is going to be uploaded
# to S3 Bucket automatically during the deployment.
# Description:
# Double quote the pairs which contain whitespaces or special characters.
# Use `#` to comment out.
# ---
# Example:
# DEPENDS=(
# NestedTemplateFooURL=/path/to/nested/foo/stack.json
# NestedTemplateBarURL=/path/to/nested/bar/stack.json
# )
DEPENDS=(
"VpcStackTemplateURL=../aws-cfn-vpc/stack.json"
## USED WITH EnableVpcPeerAcceptor=1
"VpcPeerAcceptorStackTemplateURL=../aws-cfn-vpc-peer-acceptor/stack.json"
## USED WITH EnableVpcPeerRequester=1
#"VpcPeerRequesterStackTemplateURL=../aws-cfn-vpc-peer-requester/stack.json"
## USED WITH EnableConfigProvider=1
"ConfigProviderStackTemplateURL=../aws-cfn-config-provider/stack.json"
## USED WITH EnableLexBot=1
"LexBotStackTemplateURL=../aws-cfn-vpn-lexbot/stack.json"
)
# LAMBDA=( <S3BucketParameterName>:<S3KeyParameterName>=<LambdaFunction> )
#
# Required: Yes if has None-inline Lambda Function, otherwise No
# Default: None
# Syntax:
# <S3BucketParameterName>: The name of template parameter that is referred
# at the value of Lambda property `Code.S3Bucket`.
# <S3KeyParameterName>: The name of template parameter that is referred
# at the value of Lambda property `Code.S3Key`.
# <LambdaFunction>: A local path or a S3 URL starting with `s3://` pointing
# to the Lambda Function.
# The Lambda Functions at local is going to be zipped and
# uploaded to S3 Bucket automatically during the deployment.
# Description:
# Double quote the pairs which contain whitespaces or special characters.
# Use `#` to comment out.
# ---
# Example:
# DEPENDS=(
# S3BucketForLambdaFoo:S3KeyForLambdaFoo=/path/to/LambdaFoo.py
# S3BucketForLambdaBar:S3KeyForLambdaBar=s3://mybucket/LambdaBar.py
# )
LAMBDA=(
## USED WITH EnableSSM=1
"S3BucketForLambdaSnsTopicSubscriber:S3KeyForLambdaSnsTopicSubscriber=lambdas/LambdaSnsTopicSubscriber.py"
"S3BucketForLambdaSsmApi:S3KeyForLambdaSsmApi=lambdas/LambdaSsmApi.py"
"S3BucketForLambdaLayerRequests:S3KeyForLambdaLayerRequests=lambdas/layers/LambdaLayerRequests.zip"
## USED WITH EnableSSN=1
#"S3BucketForSsnLambdaSnsTopicSubscriber:S3KeyForSsnLambdaSnsTopicSubscriber=lambdas/SsnLambdaSnsTopicSubscriber.py"
## USED WITH EnableLexBot=1
"S3BucketForLambdaLexBot:S3KeyForLambdaLexBot=lambdas/LambdaLexBot.py"
)
# LOGICAL_ID=[LogicalId]
#
# Required: No
# Default: None
# Valid Value: Logical resource ID of AWS::EC2::Instance.
# Description:
# If set this, will try to get the console output of the EC2 Instance
# over CLI when the stack deployment goes wrong.
# ---
# Example:
# LOGICAL_ID=WebServerInstance
LOGICAL_ID=VPNServerInstance
# TIMEOUT=[Minutes]
#
# Required: No
# Default: None
# Valid Value: Integer
# Description:
# Amount of time that can pass for stack creation.
# ---
# Example:
# TIMEOUT=5
TIMEOUT=
# OPTIONS=(
# <ParameterName>=<ParameterValue>
# )
#
# Required: Yes if the template has required parameters, otherwise No
# Default: The parameters for nested templates and Lambda Functions which
# were defined with `DEPENDS` and `LAMBDA`.
# Syntax:
# <ParameterName>: The name of template parameters.
# <ParameterValue>: The value for the parameter.
# Description:
# The options here will be passed to command `create-stack --parameters`
# after being translated to the syntax:
# `ParameterKey=<ParameterName>,ParameterValue=<ParameterValue> ...`
#
# Double quote the pairs which contain whitespaces or special characters.
# Use `#` to comment out.
# ---
# Example:
# OPTIONS=(
# MyParam=MyValue
# )
OPTIONS=(
## COMMON OPTIONS
"VpcCidrBlock=10.0.$((0*4)).0/22"
"SubnetCidrBlocks='10.0.$((0*4)).0/24,10.0.$((0*4+1)).0/24,10.0.$((0*4+2)).0/24,10.0.$((0*4+3)).0/24'"
"KeyPairName=aws-ek-sample-0-sb-ap-northeast-1"
"InstanceType=t2.micro"
"EipDomain=vpc"
## SHADOWSOCKS COMMON OPTIONS
## USED WITH EnableSSM=1 *OR* EnableSSN=1
"DomainNameServerEnv="
"SSPortBegin=8381"
"SSPortEnd=8385"
## SHADOWSOCKS NODE OPTIONS
"EnableSSN=0"
## USED WITH EnableSSN=1
#"SSDomain="
#"SSDomainNameServerEnv="
#"SSManagerInterface=" # 1: Localhost, 2: Private, 3: Public.
#"SSManagerPort="
#"SSEncrypt="
#"SSTimeout="
#"SSV2Ray="
#"SSVersion="
## SHADOWSOCKS MANAGER OPTIONS
"EnableSSM=1"
## USED WITH EnableSSM=1
"SSMDomain="
"SSMDomainNameServerEnv="
"SSMAdminUsername=admin"
"SSMAdminPassword=passw0rd"
"SSMAdminEmail="
"SSMTimeZone=UTC"
"SSMVersion=latest"
## VPC PEER ACCEPTOR OPTIONS
"EnableVpcPeerAcceptor=1"
## VPC PEER REQUESTER OPTIONS
"EnableVpcPeerRequester=0"
## USED WITH EnableVpcPeerRequester=1
#"SSMAccountId="
#"VpcPeerAcceptorVpcId="
#"VpcPeerAcceptorRegion="
#"VpcPeerAcceptorRoleArn="
#"VpcPeerAcceptorCidrBlock="
#"VpcPeerAcceptorSqsQueueUrl="
## LEXBOT OPTIONS
"EnableLexBot=1"
## USED WITH EnableLexBot=1
"LexBotRegion=us-west-2"
## CONFIG OPTIONS
"EnableConfigConsumer=1"
"EnableConfigProvider=1"
## USED WITH EnableConfigProvider=1 and EnableConfigConsumer=0
#"SnsTopicArn="
## L2TP OPTIONS
"EnableL2TP=1"
## USED WITH EnableL2TP=1
"L2TPDomain="
"L2TPDomainNameServerEnv="
"L2TPUsername=vpnuser"
"L2TPPassword=passw0rd"
"L2TPSharedKey=SharedSecret"
"L2TPPrimaryDNS=8.8.8.8"
"L2TPSecondaryDNS=8.8.4.4"
)
# DISABLE_ROLLBACK=[0 | 1]
#
# Required: No
# Default: Depends on CloudFormation (Rollback on error by default)
# Valid Value:
# 0: Rollback stack on error.
# 1: Disable to rollback stack on error.
# ---
# Example:
# DISABLE_ROLLBACK=1
DISABLE_ROLLBACK=
# DELETE=[0 | 1]
#
# Required: No
# Default: 0
# Valid Value:
# 0: Do nothing.
# 1: Delete stack after deployment no matter succeeded or failed.
# Usually set this for test purpose.
# ---
# Example:
# DELETE=1
DELETE=