In our Appsync app, we are going to create the following resources:
We will create a Appsync GraphQL resource and attach some config resources to it, such as our schema and api key. Although we have only 1 schema, we will potentially have many resolvers and datasources
In our case, we are using DynamoDB as a datasource, and many resolvers which correspond to our schemas query and mutation definitions.
Although we can have many datasources, in our example, we will be using 1 DynamoDB datasource, and defining multiple resolvers to act against it.
sam build
sam deploy --guided
We will have to change the capabilities setting in our toml file to:
capabilities = "CAPABILITY_NAMED_IAM"