To communicate with AWS Amplify services, we will need to use their SDKs. This process is repetitive and can be merged into a driver for each of the Amplify services we will be using.
In this recipe, we will learn how to create communications drivers, and how to do it with AWS Amplify.
Getting ready
The prerequisites for this recipe are as follows:
- The previous recipe's project
- Node.js 12+
The Node.js global objects that are required are as follows:
- @aws-amplify/cli
- @quasar/cli
In this recipe, we will use the project from the Adding the GraphQL Client to your application recipe. Please complete the instructions in that recipe first.
How to do it...
In this recipe, we will split it into three parts: the first will be for the AWS Storage driver, the second part will be for the Amplify Auth driver, and finally, we'll see the creation of the Amplify AppSync instance.
Creating the AWS Amplify Storage driver
To create the...