From cc14c6073693f62ed9f897cfb18f4411b3ad6639 Mon Sep 17 00:00:00 2001 From: Alex Hyett Date: Wed, 12 Dec 2018 10:05:33 +0000 Subject: [PATCH] Updated readme and config file --- README.md | 10 +++++++++- src/ContactForm/aws-lambda-tools-defaults.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 25233e2..3fd847e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,16 @@ # lambda-contact-form + A lambda function used as the endpoint for the contact form on my website. -Since moving my website from Wordpress to Gatsby.js I have been using FormSpree.io for my contact form. +Since moving my website from Wordpress to Gatsby.js I have been using FormSpree.io for my contact form. However, I wanted to keep everything on my own domain and needed an excuse to play around with AWS Lambda. This function is based off of my [lamda-dotnet-console](https://github.com/hyettdotme/lamda-dotnet-console) project. + +## Deploying + +``` +cd src/ContactForm +dotnet lambda deploy-function +``` diff --git a/src/ContactForm/aws-lambda-tools-defaults.json b/src/ContactForm/aws-lambda-tools-defaults.json index 1aa09ea..3cd3450 100644 --- a/src/ContactForm/aws-lambda-tools-defaults.json +++ b/src/ContactForm/aws-lambda-tools-defaults.json @@ -15,5 +15,5 @@ "function-runtime": "dotnetcore2.1", "function-memory-size": 256, "function-timeout": 30, - "function-handler": "lambda-dotnet-console::ContactForm.Function::FunctionHandler" + "function-handler": "ContactForm::ContactForm.Function::FunctionHandler" }