Skip to content

Commit

Permalink
chore: use yum to install node js on EC2 in terraform user data
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Aug 18, 2023
1 parent f479d73 commit e7aee86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions perf/terraform/configs/local/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions perf/terraform/modules/long_lived/files/user-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ sudo systemctl start docker
sudo usermod -aG docker ec2-user

# Taken from https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
. ~/.nvm/nvm.sh
nvm install --lts
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
sudo yum install -y nodejs

0 comments on commit e7aee86

Please sign in to comment.