Remove hardcoded names for DynamoDB and AppSync DataSource in aws-ts-appsync
MODIFY
aws-ts-appsync/index.ts
aws-ts-appsync/index.ts
@@ -5,7 +5,6 @@ import { createIamRole } from "./iam";
// Dynamo DB table to hold data for the GraphQL endpoint
const table = new aws.dynamodb.Table("tenants", {
- name: "Tenant",
hashKey: "id",
attributes: [{ name: "id", type: "S" }],
readCapacity: 1,
@@ -46,7 +45,6 @@ const apiKey = new aws.appsync.ApiKey("key", {
// Link a data source to the Dynamo DB Table
const dataSource = new aws.appsync.DataSource("tenants-ds", {
- name: "TenantsDataSource",
apiId: api.id,
type: "AMAZON_DYNAMODB",
dynamodbConfig: {

Remove hardcoded names for DynamoDB and AppSync DataSource in aws-ts-appsync