question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Approaches to managing development flow?

See original GitHub issue

** Which Category is your question related to? ** amplify-cli

** What AWS Services are you utilizing? ** appsync, amplify, amplify-cli

** Provide additional details e.g. code snippets ** I’ve started a side project with appsync and started using the CLI to create resources. It’s simple and helpful in a nice way. But to be honest, I am confused about how it fits into a development workflow… one that can standup in a production environment. Based on research and articles it seems the options are:

Option 1: Handle everything through the CLI

This means that the resources are created. But once they are created, you need to update and manage everything in the AWS console (besides the schema.graphql. If you want to modify the resolvers, you have to do that in the console. If you modify the schema in the console and then run amplify push locally your changes are overridden with what you had locally even though it’s out of sync.

So: good for getting started but little flexibility because most things are abstracted and if you need to update, you’re in the AWS console. You wouldn’t want to check the backend api into your repo because it gets out of sync.

Question about this option: is there a better way to manage things locally? to keep it in sync with changes in the console?

Option 2: Manage yourself via cloudformation, terraform, serverless

Take most of the abstraction out of it and handle resources yourself. The schema is local, the mapping templates (resolvers) are local and deployed based on your configuration. This provides more control and can handle different stages (dev, release, prod). Since you are controlling things locally, you can check into your repo… run thru your normal development cycles. The downside is you don’t have some of the abstraction magic… all of the resolvers aren’t created for you. My understanding, though, is that once you push the schema to appsync… you could run amplify codegen and get all of the queries, mutations, subscriptions locally.

Question about this option: If you don’t attach a mapping template to a field, does appsync create it for you or does it just not have a one attached? For example, if I has an @aws_auth directive as part of my schema, would I get that for free if I push up my schema without a resolver or do I need to handle that myself?


Thanks to the team for all the work you are putting in. It’s an impressive product and I’m sure will only get better.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cojackcommented, Dec 7, 2018

Yeah, but the #508 is more about how to provide a flow and not about how to locally create a datasource map them to specific source type like Lambda and then attach field to resolver that we create in a step before. This part is missing in amplify @kaustavghosh06 and it has to be done manually in amazon console if you don’t follow the CloudFormation schema.

0reactions
github-actions[bot]commented, May 27, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project and Development Approaches - University of Waterloo
Traditionally, the Systems Development Lifecycle (SDLC) and Project Management (PM) methodologies have followed a waterfall or gated approach.
Read more >
Chapter 10 – Approaches to System Development
Chapter Overview. The chapter first presents and explains the differences in the life cycle approach—the predictive and the adaptive approaches.
Read more >
The 5 Most Popular Project Management Approaches That Work
Project management approach · 1. Traditional · 2. Agile · 3. Waterfall · 4. Systems · 5. Program Management.
Read more >
Software Development Approaches - AcqNotes
Typical approaches or paradigms encountered in DoD software development include waterfall, incremental, and spiral as described below. The ...
Read more >
The Principles of Product Development Flow: Second ...
We need a different approach, one based on solid economics and real science. The heart of this approach is FLOW, and the enemy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found