Closed mehdiAhmed closed 3 years ago
The same issue. Have you resolved an issue?
@anton-makarov-photobox No
Same from my side... Is the issue resolved?
@LENO-DEV Not yet. Hope to be fixed quickly
I'm also getting the same issue when following the guide from: https://www.serverless.com/blog/manage-canary-deployments-lambda-functions-serverless-framework
Circular dependency:
[
ApiGatewayDeployment1626931690024,
HelloLambdaPermissionApiGateway,
PreHookLambdaFunction,
HelloLambdaVersiontZg6XQzIjiC9UvMh3YryQRMuc3LFYK4mx06m85c,
ApiGatewayMethodHelloGet,
IamRoleLambdaExecution,
HelloLambdaFunctionAliasLive,
HelloLambdaFunction,
HelloFooAlarm,
PreHookLambdaVersionJMlooKzg4vkcRqk1CIn3am9pBTvXhzbaTYd7LRyWs,
HelloLambdaFunctionDeploymentGroup
]
Goes away when I comment out the Alarm section from the "serverless.yml" file. Seems to be a case of you can either have the Alarm or the Hooks, but defining them both causes the above circular dependency. From the article here: https://aws.amazon.com/premiumsupport/knowledge-center/cloudformation-circular-dependency-sam/ it might be a case of replacing a direct reference in one of the resources above with like "string concatenation" to fix.
From reading the issues, it looks like this might have been introduced with this PR: https://github.com/davidgf/serverless-plugin-canary-deployments/pull/110 which attempted to automate adding in the CodeDeploy IAM Roles to the hook Lambda's?
Please, when I'm trying to use alarms with canary deployment I got the following error:
Here my
serverless.yml
. I get this example from https://www.serverless.com/blog/manage-canary-deployments-lambda-functions-serverless-frameworkThis is my environment
And this is the
package.json
that I use:Why This error ? what I should use to have a correct deployment with alarms ?
Thanks