Using amplify with Next.js and existing aws serverless SAM app

0

I have an existing serverless backend on aws SAM application that uses cogito, api gatway , lambda dynamo db For the web client, I thought nextjs might be a good choice. I am a bit confused about the potential usefulness of Amplify here. Amplify seems to be primarily focused on helping front end developers (who are not experienced with aws back end development) build applications without directly doing anything on the AWS side, as amplify lets them create AWS backend resources from the "client side"..

On the other hand, I feel more comfortable creating and managing AWs resources by hand (using SAM) and I am not interested in automatic generation of AWS resources. However, I feel parts of Amplify might still be useful to me. For example, I might use Amplify libraries to build the UI for authentication and to call the api gatway with ease. Here are my questions

  1. Is Amplify still a good choice when you are only using existing AWS resources only, and you are not creating or managing aws resources using amplify (I am using SAM for that)

  2. Amplify has gen1 and gen 2 docs. While gen 1 has sections titled " Using existing AWS resources" Get 2 doesn't seem to have any mention of using existing AWS resources .Does this mean Amplify gen 2 doesn't support using existing AWS resources?

asked a year ago403 views
1 Answer
2
Accepted Answer

Hello.

Is Amplify still a good choice when you are only using existing AWS resources only, and you are not creating or managing aws resources using amplify (I am using SAM for that)

Yes, Amplify can use existing API Gateway, so I don't think it's a problem as an option.
https://docs.amplify.aws/gen1/nextjs/build-a-backend/restapi/existing-resources/

Amplify has gen1 and gen 2 docs. While gen 1 has sections titled " Using existing AWS resources" Get 2 doesn't seem to have any mention of using existing AWS resources .Does this mean Amplify gen 2 doesn't support using existing AWS resources?

As far as I can see from the document below, I think it is possible to use existing API Gateway etc.
https://docs.amplify.aws/nextjs/build-a-backend/add-aws-services/rest-api/existing-resources/

profile picture
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
  • Thanks Rick, Its funny that I just couldn't find the link for existing resources under Gen 2 earlier. Not sure how I missed it but thanks very much for this 👍

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions