I wanted to write some custom resources for my CloudFormation templates using .NET core in AWS Lambdas. All the samples are in JS and Python at the moment:
I'm assuming CloudFormation event models are not currently supported by the SDK? I found S3 models and others but no CloudFormation ones.
I've written a version of the request / response model for CloudFormation in Lambdas. Is this something you would be interested in me creating a PR for?
I also have a working version of cfn-response in .NET which feels like it would be super handy to have in the SDK for people to be able to call on their Lambda response calls. The version is based around the documentation at:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-cfnresponsemodule
Let me know if you are interested in any of the above and I can look at creating a PR for it.
I'm not familiar with this Lambda/CloudFormation feature. Let me process your links and think about how it fits in with our tooling.
I would be happy to be the first step be adding a nuget package for the event objects (say, Amazon.Lambda.CloudFormationEvents) so that work on this could start to gel.
Did you want me to throw some of my code in to a PR?
Did anything come of this? I haven't found an example. I'm able to catch the incoming requests via SNS/Lambda integration, but don't see an event class for this or a reponse class object
I have an interest in creating Lambda backed custom resources in .NET as well. Therefore I too am curious as to whether anything came out of this.
@NeilBostrom would you be comfortable open sourcing your request / response models and your .net port of cfn-response?
@alexconwayspok Sure, it's a few classes and a sample that looks up a specific AMI by name.
https://gist.github.com/NeilBostrom/97048a42e536a3b94f37dce2e4ac0c38
Thanks for the gist @NeilBostrom. It would be great to see this feature within the SDK some day.
@normj Did you want me to try to put a PR for this feature together? Might need some thoughts from you and your team on how you would want it integrated with the rest of the SDK but I'm happy to help do some legwork.
@NeilBostrom FWIW, in case you submit a PR, I will be happy to provide my view on it.
Any news about this?
I have the same requirement, currently I want to create a serverless application using net core, and need to use a custom cloudformation resource to configure parts of Cognito that are not accessible via cloud formation. I am currently using a JS Custom Resource to achieve this, but would be much better to have a homogeneous approach.
@NeilBostrom , thanks for sharing your code, this is at least a starting point.
Add one more vote for this feature. I'd like to be able to integrate C# lambda with my CloudFormation-driven deployment process.
@NeilBostrom Thanks for the sample code. It'll be useful in the meantime.
I took @NeilBostrom Gist, and expanded it to make life a bit easier.
You can find my changes here: https://gist.github.com/ApocDev/11ce0d06ad06a0d63f67bbf184aa388b
Example of usage (to create MySQL users after database creation): https://gist.github.com/ApocDev/d6b13f932564492cea780b90dd537608
Most helpful comment
@alexconwayspok Sure, it's a few classes and a sample that looks up a specific AMI by name.
https://gist.github.com/NeilBostrom/97048a42e536a3b94f37dce2e4ac0c38