Open vishal-dms opened 1 year ago
Can this issue be reopened? I still have a problem with the per model configuration. I'm not using the Optimistic Concurrency, but the custom lambda. First of all, the functions of the changed model(s) in the Appsync console are not changed to the custom lambda. Next to this, if I manually set the custom lambda in the model I get an error in Datastore (clientside) stating that the APPSYNC_ASSUME_ROLE is not authorized to perform the lambda:InvokeFunction action.
Hi @Dennis-Dekker :wave:
I will re-open this issue and reach out to the team to see what we might've missed in the previous fix.
Can you also please run amplify diagnose --send-report
and share the project identifier from the output? This will help us gain some insight into your amplify app and configuration.
Hi @chrisbonifacio,
Thank you for helping out! I have run some different configurations with the conflict resolution strategy.
Here is a list of configurations I tried (below, in run order), they are all under project Id 6db571214cc1ed81638fa003a307b328. I don't know if you can access all of them as I ran the amplify diagnose --send-report
4 times, if not I can provide you with the .zip files for each run.
Name: ConnectionStack (AWS::CloudFormation::Stack), Event Type: update, Reason: Template error: unresolved condition dependency HasEnvironmentParameter in Fn::If
Name: ConnectionStack (AWS::CloudFormation::Stack), Event Type: update, Reason: Template error: unresolved condition dependency HasEnvironmentParameter in Fn::If
On Discord, we also have a thread open for this issue (https://discordapp.com/channels/705853757799399426/1076342999421816892). I you need more info to investigate this I'm happy to help.
@chrisbonifacio snklip (fellow discord user) and I have been trying out some more different configurations and found some insights that may help you fix this problem, you can find this on this AWS Amplify discord thread: https://discord.com/channels/705853757799399426/1076342999421816892 Feel free to reach out to us here or on Discord if you need more info!
@chrisbonifacio Any updates on this issue?
@chrisbonifacio snklip (fellow discord user) and I have been trying out some more different configurations and found some insights that may help you fix this problem, you can find this on this AWS Amplify discord thread: https://discord.com/channels/705853757799399426/1076342999421816892 Feel free to reach out to us here or on Discord if you need more info!
works but now when i update my model the function in appsync gets detach and i have to manually add it again.. lol
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
10.5.1 or latest as well
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
Per model configuration, updated through Amplify CLI is not being applied to the respective models (which still continue to use default configuration)
Expected behavior
Amplify CLI should be able to deploy Per model configuration as documented
Reproduction steps
amplify add api
- Push any two modelsamplify update api
- For the second model override the conflict strategy to Optimistic ConcurrencyProject Identifier
033d150b45772ea4e67cf4ee6650fc8c
Log output
Additional information
We currently have to look into overriding the sync config for such models using
amplify override api
and then manually update the syncConfig for the desired model's resolversBefore submitting, please confirm: