mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
The generated request resources give Lambda's function, function version and alias, event source mapping, web function, revision and endpoint, MicroVM image and network connector types aws:ResourceTag/ keys, but LambdaStoredResourceArns did not answer storedTags, so a condition on their tags saw none. It now answers from the service holding each: LambdaService for a function, whose versions and aliases have its tags as Lambda keeps tags on the function alone, and an event source mapping; LambdaWebService for a web function, whose revisions and endpoints inherit its tags; LambdaMicrovmsService for an image or a connector. Each reads the resource under the ARN in the account and Region it names, a pre-multi-account one of the default account in place, through the new AccountAwareStorageBackend.readInAccount, matched on the whole ARN. Tagging a function or a mapping now puts a new tag map in place of the old one, so the lookup always copies one whole set.