Update AWS template (#1447)
This commit is contained in:
parent
7c133f1053
commit
11803db1f4
@ -401,7 +401,7 @@
|
|||||||
"'''",
|
"'''",
|
||||||
"def handler(event, context):",
|
"def handler(event, context):",
|
||||||
" try:",
|
" try:",
|
||||||
" keyName = 'setup-ipsec-vpn-' + ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(10)).lower()",
|
" keyName = 'setup-ipsec-vpn-' + ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(20)).lower()",
|
||||||
" region = event['ResourceProperties']['Region']",
|
" region = event['ResourceProperties']['Region']",
|
||||||
" ec2 = boto3.client('ec2',region)",
|
" ec2 = boto3.client('ec2',region)",
|
||||||
" response = ec2.create_key_pair(",
|
" response = ec2.create_key_pair(",
|
||||||
@ -667,7 +667,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Outputs": {
|
"Outputs": {
|
||||||
"VPNAddress": {
|
"1VPNAddress": {
|
||||||
"Description": "This is the public IP of your newly-launched VPN server.",
|
"Description": "This is the public IP of your newly-launched VPN server.",
|
||||||
"Value": {
|
"Value": {
|
||||||
"Fn::GetAtt": [
|
"Fn::GetAtt": [
|
||||||
@ -676,25 +676,25 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"VPNUsername": {
|
"2VPNUsername": {
|
||||||
"Description": "Your VPN username",
|
"Description": "Your VPN username",
|
||||||
"Value": {
|
"Value": {
|
||||||
"Ref": "VpnUser"
|
"Ref": "VpnUser"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"VPNPassword": {
|
"3VPNPassword": {
|
||||||
"Description": "Your VPN password",
|
"Description": "Your VPN password",
|
||||||
"Value": {
|
"Value": {
|
||||||
"Ref": "VpnPassword"
|
"Ref": "VpnPassword"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"VPNKey": {
|
"4VPNKey": {
|
||||||
"Description": "Your VPN IPsec PSK (pre-shared key)",
|
"Description": "Your VPN IPsec PSK (pre-shared key)",
|
||||||
"Value": {
|
"Value": {
|
||||||
"Ref": "VpnIpsecPsk"
|
"Ref": "VpnIpsecPsk"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"EC2PrivateKeyMaterial": {
|
"5EC2PrivateKeyMaterial": {
|
||||||
"Description": "The content of your private key for accessing the VPN server via SSH. Save it as a file for use when connecting.",
|
"Description": "The content of your private key for accessing the VPN server via SSH. Save it as a file for use when connecting.",
|
||||||
"Value": {
|
"Value": {
|
||||||
"Fn::GetAtt": [
|
"Fn::GetAtt": [
|
||||||
@ -703,15 +703,15 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"NextStep": {
|
"6NextStep": {
|
||||||
"Description": "Learn how to configure VPN clients.",
|
"Description": "Learn how to configure VPN clients.",
|
||||||
"Value": "https://github.com/hwdsl2/setup-ipsec-vpn#next-steps"
|
"Value": "https://github.com/hwdsl2/setup-ipsec-vpn#next-steps"
|
||||||
},
|
},
|
||||||
"WarningForDebianUsers": {
|
"7WarningForDebianUsers": {
|
||||||
"Description": "Please be noted that due to Debian images on AWS EC2 using cloud kernels, you are unable to use IPSec/L2TP mode if your server is running Debian. For more information, please refer to the link to the left.",
|
"Description": "Please be noted that due to Debian images on AWS EC2 using cloud kernels, you are unable to use IPSec/L2TP mode if your server is running Debian. For more information, please refer to the link to the left.",
|
||||||
"Value": "https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#debian-kernel"
|
"Value": "https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#debian-kernel"
|
||||||
},
|
},
|
||||||
"RetrieveYourIkev2Credentials": {
|
"8RetrieveYourIkev2Credentials": {
|
||||||
"Description": "Please use the following link to download your IKEv2 connection credentials. The password to the ZIP file that stores the credentials, is the same password used to connect to your VPN server. The download link for the credentials will expire in ONE day.",
|
"Description": "Please use the following link to download your IKEv2 connection credentials. The password to the ZIP file that stores the credentials, is the same password used to connect to your VPN server. The download link for the credentials will expire in ONE day.",
|
||||||
"Value": {
|
"Value": {
|
||||||
"Fn::Join": [
|
"Fn::Join": [
|
||||||
@ -730,4 +730,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user