Node NPM - Amazon Linux 2 AMI


Upload Files to S3 from specific local folder to specific S3 Path


Using username "ec2-user".
Authenticating with public key "NodeServer"
Last login: Mon Nov 28 14:10:14 2022 from 103.163.248.87

       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-2/
35 package(s) needed for security, out of 56 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-12-12 ~]$ history
    1  ls
    2  node --version
    3  curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
    4  . ~/.nvm/nvm.sh
    5  nvm install --lts
    6  node -e "console.log('Running Node.js ' + process.version)"
    7  node -e
    9  node -v
   10  node --version
   11  curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -
   12  sudo curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -
   14  sudo  yum install gcc-c++ make
   15  node -v
   16  sudo yum install -y nodejs
   17  node -v
   18  npm -v
   19  sudo npm i soap
   20  sudo npm i xml2json
   21  cd ..
   22  zip -r soap.zip ec2-user
   23  sudo zip -r soap.zip ec2-user
   24  history
   50  ls
   51  sudo npm install xml2js
   52  cd ..
   53  sudo zip -r xml2js.zip ec2-user
   54  history