install and configure aws-cli (the actual version is available in Python) pip3 install awscli aws configure add and check another user aws configure --profile new-name-name aws --profile new-name-name sts get-caller-identity Lambda prepare .zip file with a code cd my-function-name; zip -r ../my-function-name.zip .; cd .. upload code as a zip aws lambda update-function-code --function-name my-function-name --zip-file fileb://my-function-name.zip download code as a zip aws lambda get-function --function-name my-function-name --query 'Code.Location' | xargs wget -O my-function-name.zip Node aws-sdk Set user configuration inline const AWS = require('aws-sdk'); AWS.config.update({ accessKeyId: 'XXX', secretAccessKey: 'XXXXXXX', region: 'eu-west-1' });