Skip to content

Commit 72237c8

Browse files
committed
Update AWS template
- Increased timeout to 15 mins - Exit script on command failures using bash "-e" flag - Update docs
1 parent 08c6ab2 commit 72237c8

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

aws/README-zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new" target="_blank"><img src="cloudformation-launch-stack-button.png" alt="Launch stack" height="34px"></a>
3333

34-
要指定一个 AWS 区域,你可以使用导航栏上你的帐户信息右侧的选择器。一但堆栈的部署状态变成 **"CREATE_COMPLETE"**你就可以连接到服务器了。单击 **Outputs** 选项卡以查看你的 VPN 登录信息,然后继续下一步:[配置 VPN 客户端](../README-zh.md#下一步)
34+
要指定一个 AWS 区域,你可以使用导航栏上你的帐户信息右侧的选择器。当你在最后一步中点击 "create stack" 之后,请等待堆栈创建和 VPN 安装完成,可能需要最多 15 分钟。一旦堆栈的部署状态变成 **"CREATE_COMPLETE"**你就可以连接到 VPN 服务器了。单击 **Outputs** 选项卡以查看你的 VPN 登录信息,然后继续下一步:[配置 VPN 客户端](../README-zh.md#下一步)
3535

3636
## 常见问题
3737

aws/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Click the icon below to start:
3131

3232
<a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new" target="_blank"><img src="cloudformation-launch-stack-button.png" alt="Launch stack" height="34px"></a>
3333

34-
You may choose an AWS region using the selector to the right of your account information on the navigation bar. As soon as the stack's status turns **"CREATE_COMPLETE"**, you are ready to connect to the VPN server. Click the **Outputs** tab to view your VPN login details. Then continue to [Next steps: Configure VPN Clients](../README.md#next-steps).
34+
You may choose an AWS region using the selector to the right of your account information on the navigation bar. After you click "create stack" in the final step, please wait for the stack creation and VPN setup to complete, which may take up to 15 minutes. As soon as the stack's status changes to **"CREATE_COMPLETE"**, you are ready to connect to the VPN server. Click the **Outputs** tab to view your VPN login details. Then continue to [Next steps: Configure VPN Clients](../README.md#next-steps).
3535

3636
## FAQs
3737

aws/cloudformation-template-ipsec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
"Type": "AWS::EC2::Instance",
323323
"CreationPolicy": {
324324
"ResourceSignal": {
325-
"Timeout": "PT10M"
325+
"Timeout": "PT15M"
326326
}
327327
},
328328
"Properties": {
@@ -331,7 +331,7 @@
331331
"Fn::Join": [
332332
"",
333333
[
334-
"#!/bin/bash -x\n",
334+
"#!/bin/bash -xe\n",
335335
"export VPN_IPSEC_PSK='",
336336
{
337337
"Ref": "VpnIpsecPsk"
@@ -349,7 +349,7 @@
349349
"'\n",
350350
"sleep 60\n",
351351
"wget https://git.io/vpnsetup -O vpnsetup.sh && sh vpnsetup.sh\n",
352-
"apt-get install python3-pip -y\n",
352+
"apt-get -yq install python3-pip\n",
353353
"pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n",
354354
"cfn-signal ",
355355
"--stack ",

0 commit comments

Comments
 (0)