Created
October 4, 2021 08:04
-
-
Save neilkuan/fcae0a471268186784ab606c13dad616 to your computer and use it in GitHub Desktop.
amazonlinux2-init-cdk-dev-env.sh
This file contains hidden or 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
#!/bin/bash | |
sudo su - ec2-user | |
sudo yum update -y | |
sleep 15 | |
sudo yum install docker git vim -y | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | |
env VERSION=`python tools/getnodeversion.py` make install DESTDIR=`nvm_version_path v$VERSION` PREFIX="" | |
nvm install --lts | |
npm | |
npm i -g aws-cdk | |
npm i -g typescript | |
npm i -g yarn | |
echo "export PATH=\$PATH:/home/ec2-user/.nvm/versions/node/`ls /home/ec2-user/.nvm/versions/node/`/bin/" >> /home/ec2-user/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment