Skip to content
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

Open
2 tasks done
MrFarhan opened this issue May 1, 2024 · 3 comments
Open
2 tasks done

Deleting rest api methods #13753

MrFarhan opened this issue May 1, 2024 · 3 comments
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

Comments

@MrFarhan
Copy link

MrFarhan commented May 1, 2024

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

# 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.
@MrFarhan MrFarhan added the pending-triage Issue is pending triage label May 1, 2024
@ykethan
Copy link
Contributor

ykethan commented May 2, 2024

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.
Furthermore with Amplify Gen 2, you can create a REST API using the AWS CDK constructs to your specifications and interact with the API using Amplify Library.

@ykethan ykethan added api-rest Issues tied to REST APIs pending-response Issue is pending response from the issue author labels May 2, 2024
@MrFarhan
Copy link
Author

MrFarhan commented May 2, 2024

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.

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label May 2, 2024
@ykethan
Copy link
Contributor

ykethan commented May 2, 2024

@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.

@ykethan ykethan added 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 labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants