auto merge strategy with custom lambda fails on push #1732
Open
Description
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.2.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
updating an GraphQL API with Conflict resolution strategy
enabled and Custom lambda
on both default resolution strategy
and per model fails on a push with
🛑 The following resources failed to deploy:
Resource Name: ConnectionStack (AWS::CloudFormation::Stack)
Event Type: create
Reason: Template error: unresolved condition dependency HasEnvironmentParameter in Fn::If
🛑 Resource is not in the state stackUpdateComplete
Name: ConnectionStack (AWS::CloudFormation::Stack), Event Type: create, Reason: Template error: unresolved condition dependency HasEnvironmentParameter in Fn::If, IsCustomResource: false
Expected behavior
better error messaging and expected workflow
Reproduction steps
- create new application
- create a lambda function(default is fine)
- create Graphql API
- add a data models(example 3 models)
- update api
- enable
Conflict resolution strategy
- select
Custom Lambda
->Existing Lambda Function
- Do you want to override default per model settings? y
- select one model (spacebar)
- select
Custom Lambda
->Existing Lambda Function
- amplify push
Project Identifier
3e6e944cc1953d02fe66dbb764200740
Log output
# Put your logs below this line
Additional information
No response
Before submitting, please confirm:
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- I have removed any sensitive information from my code snippets and submission.