Last active
September 11, 2021 12:25
-
-
Save wongcyrus/116b48347db0740d3d89e66bacf70002 to your computer and use it in GitHub Desktop.
Install and run Visual Studio Code (Code-Server) in AWS Cloud9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) | |
echo "Code Server" | |
echo "http://$ip:8443" | |
security_group=$(ec2-metadata -s | cut -d " " -f 2); | |
aws ec2 authorize-security-group-ingress --group-name $security_group --protocol tcp --port 8443 --cidr 0.0.0.0/0 | |
version="1.32.0-310" | |
wget https://github.com/codercom/code-server/releases/download/$version/code-server-$version-linux-x64.tar.gz | |
tar -xvzf code-server-$version-linux-x64.tar.gz | |
cd code-server-$version-linux-x64 | |
chmod +x code-server | |
./code-server -p 8443 |
Hello, I get this: Unknown option -p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@uday12kumar yes. that line for getting public ip address.