mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(cloudformation): persist FunctionResponseTypes on Lambda::EventSourceMapping (#2964)
provisionLambdaEventSourceMapping never read the FunctionResponseTypes property, so a CFN-provisioned mapping always came back with an empty list even when the template declared it, unlike the direct CreateEventSourceMapping path. Partial batch responses were therefore ignored for CFN-deployed SQS to Lambda mappings. The property is resolved the way the arm's other array properties are, through resolveStringList, and the integration test pins the persisted value. Fixes #2848
This commit is contained in:
1 parent
8c2619f965
commit
9e2c03158d
2 files changed
+16
-1
No files matched your search
+5
@@ -4117,6 +4117,11 @@ public class CloudFormationResourceProvisioner {
|
||||
}
|
||||
}
|
||||
|
||||
List<String> functionResponseTypes = resolveStringList(props, "FunctionResponseTypes", engine);
|
||||
if (!functionResponseTypes.isEmpty()) {
|
||||
req.put("FunctionResponseTypes", functionResponseTypes);
|
||||
}
|
||||
|
||||
var esm = lambdaService.createEventSourceMapping(region, req);
|
||||
r.setPhysicalId(esm.getUuid());
|
||||
r.getAttributes().put("Id", esm.getUuid());
|
||||
|
||||
Reference in new issue
Block a user