1
0
mirror of synced 2024-11-26 06:46:06 +03:00

Update AWS template

- Change Debian AMI names to be more specific
  Ref: https://wiki.debian.org/Cloud/AmazonEC2Image
- Change default OS to Ubuntu 20.04
- Minor wording changes
This commit is contained in:
hwdsl2 2020-08-27 00:27:00 -05:00
parent 580678aed5
commit 89a7008a6c

View File

@ -584,9 +584,9 @@
" elif distribution == 'Ubuntu20.04':", " elif distribution == 'Ubuntu20.04':",
" IAMName = 'ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*'", " IAMName = 'ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*'",
" elif distribution == 'Debian9':", " elif distribution == 'Debian9':",
" IAMName = 'debian-stretch-hvm-x86_64-gp2-*'", " IAMName = 'debian-stretch-hvm-x86_64-gp2-2020-07-20-58035'",
" elif distribution == 'Debian10':", " elif distribution == 'Debian10':",
" IAMName = 'debian-10-amd64-*'", " IAMName = 'debian-10-amd64-20200803-347'",
" response = ec2.describe_images(Filters=[{'Name':'name', 'Values':[IAMName]}])", " response = ec2.describe_images(Filters=[{'Name':'name', 'Values':[IAMName]}])",
" images = response['Images']", " images = response['Images']",
" images.sort(key=creation_date,reverse=True)", " images.sort(key=creation_date,reverse=True)",
@ -723,16 +723,16 @@
}, },
"VpnIpsecPsk": { "VpnIpsecPsk": {
"Type": "String", "Type": "String",
"Description": "Your IpSec PSK(Pre-shared Key) for the VPN server." "Description": "Your VPN IPsec PSK (pre-shared key)"
}, },
"VpnPassword": { "VpnPassword": {
"Type": "String", "Type": "String",
"Description": "Your VPN password." "Description": "Your VPN password"
}, },
"OS": { "OS": {
"Type": "String", "Type": "String",
"Description": "The OS of your VPN server. Choose the default value if you don't know what it is.", "Description": "The OS of your VPN server. Default: Ubuntu 20.04",
"Default": "Ubuntu16.04", "Default": "Ubuntu20.04",
"AllowedValues": [ "AllowedValues": [
"Ubuntu16.04", "Ubuntu16.04",
"Ubuntu18.04", "Ubuntu18.04",
@ -743,7 +743,7 @@
}, },
"InstanceType": { "InstanceType": {
"Type": "String", "Type": "String",
"Description": "The instance type of VPN server. If you want to build your server within AWS free usage tier, select t2.micro.", "Description": "The instance type of your VPN server. Using t2.micro may qualify for the AWS Free Tier.",
"AllowedValues": [ "AllowedValues": [
"t2.micro", "t2.micro",
"t3.nano", "t3.nano",
@ -763,7 +763,7 @@
}, },
"Outputs": { "Outputs": {
"VPNAddress": { "VPNAddress": {
"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": [
"VpnInstance", "VpnInstance",
@ -784,13 +784,13 @@
} }
}, },
"VPNKey": { "VPNKey": {
"Description": "Your IPSec VPN PSK(pre-shared key)", "Description": "Your VPN IPsec PSK (pre-shared key)",
"Value": { "Value": {
"Ref": "VpnIpsecPsk" "Ref": "VpnIpsecPsk"
} }
}, },
"EC2PrivateKeyMaterial": { "EC2PrivateKeyMaterial": {
"Description": "The content of your private key for accessing the VPN server via SSH. Save it as a file and use it when you connect to your server via SSH.", "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": [
"KeyPairInfo", "KeyPairInfo",
@ -799,8 +799,8 @@
} }
}, },
"NextStep": { "NextStep": {
"Description": "Go to this page for how to configure to VPN clients.", "Description": "Learn how to configure VPN clients.",
"Value": "https://git.io/vpnclients" "Value": "https://github.com/hwdsl2/setup-ipsec-vpn#next-steps"
} }
} }
} }