mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
PublishVersion builds its snapshot field by field and left accountId unset, so every published version reported a null owning account while $LATEST reported the real one for the same function. Consumers that key off the account then have to re-derive it from the function ARN or fall back to a default: codeObjectKey substitutes 000000000000 for a null account, and anything keying IAM state on the function account has nothing to key on. Copy accountId alongside the other snapshot fields so a version carries the same owning account as the function it was published from. The account was never lost, the version ARN already embeds it, it just was not on the model. Fixes #2040