Skip to content

Instantly share code, notes, and snippets.

@onedal
Created July 14, 2016 10:54
Show Gist options
  • Save onedal/a767c341d48f9849725afabcee83736a to your computer and use it in GitHub Desktop.
Save onedal/a767c341d48f9849725afabcee83736a to your computer and use it in GitHub Desktop.
how upload code to aws lambda
==================================================================================================================
IAM -> Roles -> Create new role->lambda-s3-execution-role->AWS Service Roles->AWS Lambda->AWSLambdaExecute
and save arn
==================================================================================================================
==================================================================================================================
aws configure
==================================================================================================================
==================================================================================================================
Commands for creating your deployment Zip
==================================================================================================================
zip -r CreateThumbnail.zip .
==================================================================================================================
Creating your Lambda function
==================================================================================================================
aws lambda create-function --region us-west-2 --function-name CreateThumbnail --zip-file fileb:///home/ec2-user/examplefolder/CreateThumbnail.zip --role <role arn> --handler CreateThumbnail.handler --runtime nodejs4.3 --timeout 10 --memory-size 1024
==================================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment