Skip to content

Instantly share code, notes, and snippets.

@arunjayakumar01
Created March 9, 2022 06:53
Show Gist options
  • Save arunjayakumar01/b9dfe5acd3f5540fb2de54811089b448 to your computer and use it in GitHub Desktop.
Save arunjayakumar01/b9dfe5acd3f5540fb2de54811089b448 to your computer and use it in GitHub Desktop.
rm -rf lambda.zip
zip -r lambda.zip node_modules/ index.js package.json
aws s3 cp lambda.zip s3://<s3-bucket-name> --profile <aws-profile>
#aws lambda update-function-code --function-name contact-form-api --zip-file fileb://lambda.zip --profile cossist
#aws lambda create-function --function-name <function name or arn> --runtime <runtime> --role <role arn> --handler <handle> --code S3Bucket=your-bucket-name,S3Key=Lambda-Deployment.zip
aws lambda update-function-code \
--function-name <lambda-api-name> \
--s3-bucket <s3-bucket-name> \
--s3-key lambda.zip \
--profile <aws-profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment