Closed pascalito007 closed 4 days ago
I am facing this exact same issue. I thought it was because I added field "subscriptionsInheritPrimaryAuth" to the amplify/backend/cli.json , however upon removing it I am still faced with the same error as in this post.
is there a way to add those Data models through CLI and will that work?
I got this:
An error occurred while processing your request: Deployment failed because your app backend contains analytics, function, geo, notifications. Amplify Studio only supports API, Auth, and Storage deployments. Please use the Amplify CLI to deploy updates.
My workaround this was:
create DataModels in Visual Editor -> Click on GraphQL Schema ->Copy Schema -> paste into amplify/backend/api/
Hey folks, thank you for reaching out. The message observed is the expected behavior as Amplify Studio does not support deploying resources such as functions, project with overrides, and custom resources enabled, etc. To continue deploying your resources, you need to utilize Amplify CLI to pull the project locally. Please refer to the documentation providing information on pulling the project locally.
https://docs.amplify.aws/gen1/react/tools/console/adminui/extend-cli/
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
function
Backend
Amplify CLI
Environment information
Describe the bug
After adding a function using CLI and successfully push with amplify push, I cannot update my data models from amplify studio. I got below message
An error occurred while processing your request: Deployment failed because your app backend contains function. Amplify Studio only supports API, Auth, and Storage deployments. Please use the Amplify CLI to deploy updates.
Expected behavior
I should be able to create and update Data Model from amplify studio even if function exists.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response