Created
July 14, 2016 10:54
-
-
Save onedal/a767c341d48f9849725afabcee83736a to your computer and use it in GitHub Desktop.
how upload code to aws lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================================================== | |
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