Skip to content

Commit

Permalink
Remove hardcoded names for DynamoDB and AppSync DataSource in aws-ts-…
Browse files Browse the repository at this point in the history
…appsync
  • Loading branch information
stack72 committed Oct 10, 2019
1 parent 37d222c commit 56d5029
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions aws-ts-appsync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 56d5029

Please sign in to comment.