Closed spa-87 closed 8 years ago
Thank you for creating the ticket. This is the correct place for this issue.
Just to restate the request:
To make lambda formation compatible with regions that do not support Lambda, lambda-formation should be able to accept messages from SNS.
lambda-formation should:
This would add SNS to all downstream projects, such as spotinst-lambda.
Added to release 0.1.6
@kmcgrath thanks a lot for a really fast fix!
When do you plan to release spotinst-lambda
based on the new version of the framework? Should I create an issue for that in the corresponding repo?
How are you running spotinst-lambda
? This is a patch update so if you have checked out the project from GitHub then you should be able to do a npm update
and you will be ready to go. Just use the SNS topic ARN as the ServiceToken.
If you are using the links from particles-spotinst-lambda then I do need to push a new version of that out to s3.
@kmcgrath thank you! Sorry for a stupid questions, I though lambda-formation is embedded into spotinst-lambda :) I've successfully rebuild spotinst-lambda with new version of framework and it works excellent. CFN stack with spotinst elastic group was successfully created, updated an removed in Sao Paulo where Lambda is unavailable.
@spa-87 no stupid questions. This project, lambda-formation
, is a building block to make anything an AWS CustomResource. Spotinst was the first. We have a few projects in the works to add functionality to AWS KMS, MySQL, Rancher and other tools that don't have full CloudFormation support. All will use lambda-formation
as a dependency.
Thank you for submitting the very useful feature request.
Hi, I've faced with a problem of sending lambda calls via SNS to https://github.com/SungardAS/spotinst-lambda function. But as it's based on current framework, here is the correct place for that issue I think.
Lambda isn't available in all AWS regions and CloudFormation doesn't allow to assign resource from a different regions for ServiceToken parameter at custom resource. In that case SNS looks like a sensible solution as it available at all regions and has native integration with Lambda. But when message is sent via SNS, there's added SNS-relative metadata and the source message is located deeper in JSON.
This is how message looks like when it comes directly from CloudFormation to Lambda
And this is the message delivered via SNS:
So we can't use in all AWS regions CloudFormation templates which call Lambda functions based on current framework.