feat(cloudformation): apply RecursiveLoop to Lambda functions (#9935)

AWS::Lambda::Function accepted RecursiveLoop but ignored it. The
provisioner now validates the value before changing the function and
applies it through PutFunctionRecursionConfig, on create and when an
update changes it, keeping the same physical function. Removing a value
the template declared restores Terminate, and a stack that never
declared it leaves a setting made through the Lambda API in place.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
Jackson PriceandAndre Kurait authored and GitHub committed 2026-12-01 16:41:38 -04:00
1 parent 69c3af4571
commit ec923a86bd
7 files changed
+131 -17

No files matched your search

+4
View File
@@ -200,6 +200,10 @@ subsequent unqualified `GetFunction` responses.
`GetFunctionRecursionConfig` reads it back, `Terminate` until one is put. The setting is
function-wide: it is read from `$LATEST` whichever version or alias is invoked.
CloudFormation applies `AWS::Lambda::Function.RecursiveLoop` on creation and updates the same
function when the value changes. In Floci, removing the property restores `Terminate`. If neither
template declares it, a stack update preserves the setting from `PutFunctionRecursionConfig`.
Under `Terminate`, a chain of Lambda destinations stops at 16 hops (see Asynchronous Invocation
Destinations below). Under `Allow`, the function is not stopped at that bound, as on AWS, so a
function that continues itself through a destination runs on until it stops invoking itself.