mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
* feat(lambdamicrovms): version network connectors as AWS does * fix(lambda): lock connector versions and refresh them after a CFN rollback Updates, deletes and version reads hold one lock, so two updates cannot take the same version number. A CloudFormation rollback restores the connector through an update. On AWS that makes the next version, and a later Fn::GetAtt returns it. The resource now keeps that version in LatestVersion and LatestVersionArn. Read the connector ARN through AwsArnUtils.parse. AWS refuses LatestVersion, an integer, as a string Output, so the stack test reads LatestVersionArn only. * fix(lambda): type the connector LatestVersion attribute as an integer AWS::Lambda::NetworkConnector declares LatestVersion as an integer. On AWS a stack whose string Output reads it fails with "Template format error: Every Value member must be a string.", and Fn::Sub refuses it with "variable Connector.LatestVersion in Fn::Sub expression does not resolve to a string". * chore(lambda): share the connector version ARN and integer attribute helpers