Deleting rest api methods #13753
Labels
api-rest
Issues tied to REST APIs
duplicate
If marked with duplicate, issue will be closed & original will be added for traceability
pending-response
Issue is pending response from the issue author
pending-triage
Issue is pending triage
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v18.19.0
Amplify CLI Version
12.11.1
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.
Created resources for rest api from AWS console as i am unable to create resource from cli.
Describe the bug
1- Unable to create resource (I.e GET, POST methods) from the amplify cli, when i run
amplify update api
it only give option to update path, but i want to create resource.2- When i create resource from the aws cli and then push my local code, it removes my resources (created from cli), along with that it also removes my authoriser...
Expected behavior
1- Should provide option to create resource from cli
2- Must not delete the resources created from console, The possible solution could be when we created anything from console and do amplify pull on code, so it must sync the changes rather delete resources created from console.
Reproduction steps
create api from cli with following commands:
amplify add api
choose the path
choose existing lambda
etc
So there is no option to add any resource i.e GET, POST methods etc
Now when you create resource from aws console and run amplify pull it does not fetch the changes done on console
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: