From 11803db1f4372db7abfa6badac49776c0cbf66cb Mon Sep 17 00:00:00 2001 From: Scottpedia <60531983+scottpedia@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:32:43 +0800 Subject: [PATCH] Update AWS template (#1447) --- aws/cloudformation-template-ipsec.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/aws/cloudformation-template-ipsec.json b/aws/cloudformation-template-ipsec.json index 95cc0c7..7a68577 100644 --- a/aws/cloudformation-template-ipsec.json +++ b/aws/cloudformation-template-ipsec.json @@ -401,7 +401,7 @@ "'''", "def handler(event, context):", " 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']", " ec2 = boto3.client('ec2',region)", " response = ec2.create_key_pair(", @@ -667,7 +667,7 @@ } }, "Outputs": { - "VPNAddress": { + "1VPNAddress": { "Description": "This is the public IP of your newly-launched VPN server.", "Value": { "Fn::GetAtt": [ @@ -676,25 +676,25 @@ ] } }, - "VPNUsername": { + "2VPNUsername": { "Description": "Your VPN username", "Value": { "Ref": "VpnUser" } }, - "VPNPassword": { + "3VPNPassword": { "Description": "Your VPN password", "Value": { "Ref": "VpnPassword" } }, - "VPNKey": { + "4VPNKey": { "Description": "Your VPN IPsec PSK (pre-shared key)", "Value": { "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.", "Value": { "Fn::GetAtt": [ @@ -703,15 +703,15 @@ ] } }, - "NextStep": { + "6NextStep": { "Description": "Learn how to configure VPN clients.", "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.", "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.", "Value": { "Fn::Join": [ @@ -730,4 +730,4 @@ } } } -} +} \ No newline at end of file