AWS CDK setup appsync with dynamodb table permissions
问题 I am using the new higher level GraphqlAPI class instead of the lower level constructs to create my Appsync api and connect it to a table. this.api = new GraphqlApi(...); The new GraphqlApi instance allows you to simply add datasources: this.api.addDynamoDbDataSource('name', tableRef); If you look at the example code at https://docs.aws.amazon.com/cdk/api/latest/docs/aws-appsync-readme.html, I notice that they do not create a role to grant permission for Appsync to access the table: const