Notice: that's not discussing how to WRITE AWS Lambda/serverless functions IN CFML. You can then invoke these functions using the Lambda module in ColdFusion. To get started with AWS Lambda, you first create a lambda function in AWS using any supported language. Not only was there no mention of this zip anywhere, but the opening paragraphs read: With AWS Lambda module in ColdFusion, you can invoke AWS Lambda functions. So imagine my surprise when I checked out that current docs page on the feature, entitle "Get started with ColdFusion AWS Lambda". That was offered as well in the update 2 prerelease! to generate the compressed serverless bundle to be uploaded to AWS". That includes in it various things, including the "lambdazip utility. Some may recall that when the there was a separate cfawslambda.zip. In their case, they wanted to run a certain part of their CFML app in an AWS Lambda package, which offered by the original feature. I'd been meaning to for weeks (months, even). I had a client with a need where it seemed the CF AWS Lambda feature might be a good fit, so I wanted to help him understand how it would work, so I wanted to read the docs more carefully and give it a try first. Only recently did I decide to look into the new/returned feature more closely. What the info in the docs page clarifies, about the "new"/returned CF AWS Lambda feature Then all of a sudden we got update 2 in September.īut I still have a PDF from the update 2 prerelease where it indicated how " Serverless ColdFusion introduces support for ColdFusion as a programming language and runtime for AWS Lambda Functions", so my point is that when the update came out, I felt I was justified in spreading the news among some folks that the update had indeed "returned the CF AWS lambda feature" to us. It so happens that the day after I shared the news, Adobe pulled the plans to change to the Azul jvm (as I noted in an update to my post then).and the update prerelease kind of languished. I think I (and perhaps others) can be forgiven for not having read that "fine print": over the summer (of 2021) there was a public prerelease of CF2021 update 2., and I shared news of that prerelease back then, how it was going to include quite a few things, not least of which was a planned change to using the Azul jvm (instead of Oracle's jvm). What the prerelease info about update 2 said about the CF AWS Lambda feature I should have read the fine print, as it were. Still, I started telling various folks in conversation that "the CF AWS Lambda feature has returned", or as Paul Revere might have repeated it: "the CF AWS Lambda feature has returned". I followed the doc link when the update came out, and I could see that it was about 10 pages if printed, so I left it to check into later. The CF2021 update 2 technote goes just a bit further, noting that " With AWS Lambda package in ColdFusion, you can now invoke cloud based AWS Lambda functions from ColdFusion server.". If you may have seen the news of update 2, whether the CF portal page announcing the update or the Adobe community forum page announcing it, they both merely mention that among the "features" of the update were "ColdFusion AWS Lambda", with a pointer to the docs page on it. What the info about update 2 says, about the CF AWS Lambda feature (And yes, it's already possible to execute cfml in AWS Lambdas in Lucee via Fuseless, as I also note later.) I just am really hopeful that at some later point the original capability will be returned.īelow, I share how I came to understand things.including more on what was possible before, what we were even teased by over the summer in the prerelease of CF2021 update 2, and then finally what the current capability allows. That's QUITE a difference.Īnd sure, there's value in being able to call AWS LAMBDAS in cfml, as I'll note. TLDR While the original CF AWS Lambda feature (removed shortly after the release) let you CREATE AWS Lambda/serverless packages written in CFML, the feature as "returned" to us now in update 2 only allows you to CALL AWS Lambda functions from within CFML. (As a reminder, the feature had been removed shortly after the initial release of CF2021, in news I shared then.) And while I was delighted to hear that news, my excitement dimmed when I saw what the "returned feature" was about. Some folks may have heard or noticed that update 2 of CF2021 has returned "CF AWS Lambda" support.
0 Comments
Leave a Reply. |