aws sdk ec2 code example Example 1: aws-sdk npm npm i aws-sdk Example 2: ec2 download file scp -i ec2key.pem username@ec2ip:/path/to/file .