You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The alias/version won't update when using lambda code packaged as zip files stored on an S3 bucket, and use FindInMap function for CodeUri.Key. (For greater readability of our templates, the versions are defined in Mappings, and we refer to them using the FindInMap function.)
If I change the package in the mapping, lambda function is updated but not my alias/version, so the event rule is always pointing to the previous version :
Hi @smathez on the first look, this seems like an intrinsic issue. Our recommendation for intrinsic issues is to use AWS::LanguageExtensions (more info in #2533). We tested with the language extensions and it seems to work
Hi,
Following your advices and adding - AWS::LanguageExtensions works on some deployments but randomly some deployments fail with the following error : Resource handler returned message: "Version already exists: [arn:aws:lambda:eu-west-1:123456789012:function:lambda-xxx:7]
We can focus on the context provided by @smathez, it is the same environnement and SAM content
Eventually this error disappear for some coworkers when they try to deploy the same SAM multiple times, but we cannot just pray that it will work on our production environnement
Do you have some information on this behavior ?
Thanks for your insights !
Description
The alias/version won't update when using lambda code packaged as zip files stored on an S3 bucket, and use FindInMap function for CodeUri.Key. (For greater readability of our templates, the versions are defined in Mappings, and we refer to them using the FindInMap function.)
Example of template:
If I change the package in the mapping, lambda function is updated but not my alias/version, so the event rule is always pointing to the previous version :
But if I don't use the mapping anymore and update the
CodeUri.Key
part like that, everything is working fine :Additional environment details
The text was updated successfully, but these errors were encountered: