Created
March 9, 2022 06:53
-
-
Save arunjayakumar01/b9dfe5acd3f5540fb2de54811089b448 to your computer and use it in GitHub Desktop.
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
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