diff --git a/packages/graphql-mesh-server/lib/fargate.ts b/packages/graphql-mesh-server/lib/fargate.ts index d0a05100..9ccae001 100644 --- a/packages/graphql-mesh-server/lib/fargate.ts +++ b/packages/graphql-mesh-server/lib/fargate.ts @@ -232,6 +232,12 @@ export interface MeshServiceProps { * } */ cpuStepScalingOptions?: Partial; + + /** + * Enable ECS Exec on the fargate containers + * @default true + */ + enableEcsExec?: boolean; } export class MeshService extends Construct { @@ -412,7 +418,7 @@ export class MeshService extends Construct { serviceName: props.serviceName !== undefined ? props.serviceName : undefined, certificate, - enableExecuteCommand: true, + enableExecuteCommand: props.enableEcsExec ?? true, cpu: props.cpu || 512, // 0.5 vCPU memoryLimitMiB: props.memory || 1024, // 1 GB taskDefinition: taskDefinition, diff --git a/packages/graphql-mesh-server/lib/graphql-mesh-server.ts b/packages/graphql-mesh-server/lib/graphql-mesh-server.ts index 0205e64a..cd303275 100644 --- a/packages/graphql-mesh-server/lib/graphql-mesh-server.ts +++ b/packages/graphql-mesh-server/lib/graphql-mesh-server.ts @@ -226,6 +226,12 @@ export type MeshHostingProps = { * @default - AWS Generated name */ dashboardName?: string; + + /** + * Enable ECS Exec on the fargate containers + * @default true + */ + enableEcsExec?: boolean; }; export class MeshHosting extends Construct {