2

We have a react mobile frontend and an AWS appsync backend (DynamoDB, step functions, lambdas, graphql, auth)

Is there an easy way to do this? We have an application and backend in production, and now want to make some changes to our GraphQL components (e.g. schema). Ideally, I would like to have an offline environment which mimics that deployed on AWS.

I found this Is there a way to test AppSync code locally and/or in CI/CD?, which didn't really have any clear answers. It seems setting up a duplicate environment on AWS (pretty much a staging envirFor lambdas, we have played around with Serverless a little.

We don't use CloudFormation today (maybe we should?), for lambdas, we have played around with Serverless a little, but had issues testing locally with authentication and I think DynamoDB. Ultimately, we just ended up using the AWS console to create components, and then something like Cloud9's IDE to build and debug before deploying to production. I don't like the fragmented dev experience. Lambdas weren't too bad because of Cloud9, but as for GraphQL doesn't seem to have the equivalent.

Eager to learn what the best practices are, and how best (and easy) it is to setup a good dev environment.

Thanks

friartuck
  • 2,954
  • 4
  • 33
  • 67

1 Answers1

0

If you already have a working Production schema and are looking to simulate a Dev environment, you would have to replicate it manually for now.

We recently launched Amplify Console, to specifically address the best practices around CI/CD, and manage your API across stages. A recommended practice would be to use Amplify CLI which internally uses CloudFormation nested stacks to simplify the process of creating and maintaining your AWS AppSync APIs. In addition to this, Amplify CLI also gives you out of the box scaffolding for your Request/Response Mapping Templates in CloudFormation with just a simple annotated schema.

You could use some of these tools as a recommended practice for maintaining cloud resources. We are also actively working towards enhancing the Developer Experience for some of these workflows.

Shankar Raju
  • 4,356
  • 6
  • 33
  • 52
  • Has there been any progress on this lately? Like have you guys been able to develop amplify such that it can used to write just the server when my consumer is just the backend? – aitchkhan May 19 '20 at 15:16