diff --git a/packages/graphql-mesh-server/lib/fargate.ts b/packages/graphql-mesh-server/lib/fargate.ts index db4733d2..2eaa025d 100644 --- a/packages/graphql-mesh-server/lib/fargate.ts +++ b/packages/graphql-mesh-server/lib/fargate.ts @@ -149,8 +149,9 @@ export interface MeshServiceProps { */ logStreamPrefix?: string; /** - * Whether a DynamoDB table should be created to store session data - * @default authentication-table + * Whether a DynamoDB table should be created to store session data, + * if not defined a table will not be created. + * @default undefined */ authenticationTable?: string; @@ -348,7 +349,7 @@ export class MeshService extends Construct { managedPolicyArn: "arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess", }); - if (props.authenticationTable || props.authenticationTable === undefined) { + if (props.authenticationTable) { const authTable = new dynamodb.Table(this, "authenticationTable", { tableName: props.authenticationTable || "authentication-table", partitionKey: { diff --git a/packages/graphql-mesh-server/lib/graphql-mesh-server.ts b/packages/graphql-mesh-server/lib/graphql-mesh-server.ts index eed38c66..0205e64a 100644 --- a/packages/graphql-mesh-server/lib/graphql-mesh-server.ts +++ b/packages/graphql-mesh-server/lib/graphql-mesh-server.ts @@ -219,6 +219,13 @@ export type MeshHostingProps = { * @default - AWS generated task definition family name */ taskDefinitionFamilyName?: string; + + /** + * Specify a name for the dashboard + * + * @default - AWS Generated name + */ + dashboardName?: string; }; export class MeshHosting extends Construct { diff --git a/packages/graphql-mesh-server/lib/metrics.ts b/packages/graphql-mesh-server/lib/metrics.ts index 83fd967a..bed81aa1 100644 --- a/packages/graphql-mesh-server/lib/metrics.ts +++ b/packages/graphql-mesh-server/lib/metrics.ts @@ -30,6 +30,7 @@ export interface PerformanceMetricsProps { logGroup: LogGroup; snsTopic?: Topic; additionalAlarms?: Alarm[]; + dashboardName?: string; } export class PerformanceMetrics extends Construct { @@ -355,7 +356,7 @@ export class PerformanceMetrics extends Construct { // Create the dashboard new Dashboard(this, "dashboard", { - dashboardName: "Mesh-Dashboard", + dashboardName: props.dashboardName, widgets: [ [new Column(...loadBalancerWidgets), new Column(...wafWidgets)], [meshPerformanceLabel],