0

I am working on an item whereby a CloudWatch alarm triggers an SNS notification, which in turn triggers an AWS Lambda Function (in Python). I need the function to connect to a SQL server and run a command. I have tried with pyodbc and pypyodbc, and so far no luck. I'm starting to think it won't be possible.

If not possible in Python, can it be done in C# ?

1 Answer 1

1

As of Dec 1, 2016, you can now develop AWS Lambda functions in C# using the .NET Core 1.0 runtime. As far as connecting to SQL, you can use entity framework core nuget package or use the SQL Server Database Provider and write a wrapper for it. See example here.

I tried creating a C# lambda function (a month ago for developing Alexa skill) when it first became available and published it on AWS but got some error publishing it. I posted this question in SO here: Error in publishing an AWS Lambda function built in .NET Core

So just refer to that link if you get into some publishing errors.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.