Anthony Xiques
04/07/2021, 5:29 PMproject-serverless
repo which contains our serverless services. Then we have project-main
repo which contains EventBridge and some other resources in a regular CFN template.
So we're deploying updates to project-serverless
through Seed, and then exporting the ARN for those Lambdas in serverless.yml
and importing them into project-main
.
I ran into some cross-stack dependency errors when trying to import the qualified ARN into project-main
, and then doing another deploy to project-serverless
.
So now I'm importing the unqualified ARN (without the Lambda version number at the end) into project-main
, so project-main
is always pointing to the LATEST version of the Lambda. And that solves the cross-stack dependency errors, so now I'm able to do deploys to project-serverless
and everything seems to work. 👍
Question:
Will importing the unqualified ARN in project-main
cause us any issues down the road? Is it possible that at some point on prod as we're deploying updates to project-serverless
through Seed that LATEST may not be deployed on prod?
Hope that makes sense. Thank you for the help! 🙂Frank
Anthony Xiques
04/08/2021, 1:04 AMExport xyz-dev-XyzLambdaFunctionQualifiedArn cannot be updated as it is in use by project-main-dev
Frank
project-main
, you actually won’t be able to remove that Lambda function in project-serverless
.Frank
Anthony Xiques
04/08/2021, 1:41 AMAnthony Xiques
04/08/2021, 1:41 AMFrank
Anthony Xiques
04/08/2021, 1:43 AM