1
0
mirror of synced 2025-02-07 15:59:25 +03:00

Update AWS template (#1022)

- remove unnecessary references
This commit is contained in:
LLZ 2021-09-28 23:32:01 -04:00 committed by GitHub
parent 297f2739b9
commit e0cbc1db49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,28 +3,22 @@
"Mappings": { "Mappings": {
"OS": { "OS": {
"Ubuntu1804": { "Ubuntu1804": {
"HelperInstallationCommands": "export DEBIAN_FRONTEND=noninteractive\napt-get -yq update\napt-get -yq install python3-pip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n", "HelperInstallationCommands": "export DEBIAN_FRONTEND=noninteractive\napt-get -yq update\napt-get -yq install python3-pip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n"
"InstallationLinks": "https://git.io/vpnsetup"
}, },
"Ubuntu2004": { "Ubuntu2004": {
"HelperInstallationCommands": "export DEBIAN_FRONTEND=noninteractive\napt-get -yq update\napt-get -yq install python3-pip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n", "HelperInstallationCommands": "export DEBIAN_FRONTEND=noninteractive\napt-get -yq update\napt-get -yq install python3-pip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n"
"InstallationLinks": "https://git.io/vpnsetup"
}, },
"Debian9": { "Debian9": {
"HelperInstallationCommands": "export DEBIAN_FRONTEND=noninteractive\napt-get -yq update\napt-get -yq install python3-pip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n", "HelperInstallationCommands": "export DEBIAN_FRONTEND=noninteractive\napt-get -yq update\napt-get -yq install python3-pip\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n"
"InstallationLinks": "https://git.io/vpnsetup"
}, },
"CentOS7": { "CentOS7": {
"HelperInstallationCommands": "yum -y install python3 wget\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n", "HelperInstallationCommands": "yum -y install python3 wget\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n"
"InstallationLinks": "https://git.io/vpnsetup"
}, },
"CentOS8": { "CentOS8": {
"HelperInstallationCommands": "yum -y install python3 wget\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n", "HelperInstallationCommands": "yum -y install python3 wget\npython3 -m pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n"
"InstallationLinks": "https://git.io/vpnsetup"
}, },
"AmazonLinux2": { "AmazonLinux2": {
"HelperInstallationCommands": "export PATH=\"$PATH:/opt/aws/bin\"\n", "HelperInstallationCommands": "export PATH=\"$PATH:/opt/aws/bin\"\n"
"InstallationLinks": "https://git.io/vpnsetup"
} }
} }
}, },
@ -393,17 +387,7 @@
"Ref": "VpnPassword" "Ref": "VpnPassword"
}, },
"'\n", "'\n",
"wget -t 3 -T 30 -nv -O vpn.sh ", "wget -t 3 -T 30 -nv -O vpn.sh https://git.io/vpnsetup\n",
{
"Fn::FindInMap": [
"OS",
{
"Ref": "OS"
},
"InstallationLinks"
]
},
"\n",
"sh vpn.sh\n", "sh vpn.sh\n",
"cfn-signal -e 0 ", "cfn-signal -e 0 ",
" --stack ", " --stack ",