-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting rest api methods #13753
Comments
Hey @MrFarhan, thank you for reaching out. The REST API currently only support creating path with Lambda proxy integration which should support all the methods request. But if you are looking to use an existing API/custom API in your project you can use the Amplify configure method to interact with the API, refer to https://docs.amplify.aws/react/build-a-backend/restapi/existing-resources/ providing this information. |
My Question was specifically about creating http methods (GET, POST etc) from amplify cli, the issue is while creating the apis with cli it does not provide option for lambda proxy integration / creating http methods. |
@MrFarhan this is currently not supported with Amplify CLI. This is currently being tracked on aws-amplify/amplify-category-api#316. Refer to the comment aws-amplify/amplify-category-api#316 (comment) providing this information. |
Closing the issue due to inactivity. Do reach out to us if you are still experiencing this issue |
This issue is now closed. Comments on closed issues are hard for our team to see. |
By default, the Amplify CLI overrides all resources created or updated from the console when you push your API using the CLI. To work around this, you can enable overriding using the following command: amplify override api As mentioned in the documentation, you can make any customized changes inside the Example: Removing
|
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: