Skip to content

Commit

Permalink
chore: add props to top level construct
Browse files Browse the repository at this point in the history
and fix serviceName being not used
  • Loading branch information
gowrizrh committed May 8, 2024
1 parent 0c75c5e commit 1038c12
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/graphql-mesh-server/lib/fargate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ export class MeshService extends Construct {
const fargateService =
new ecsPatterns.ApplicationLoadBalancedFargateService(this, `fargate`, {
cluster,
serviceName: props.serviceName !== undefined ? props.serviceName : undefined,
certificate,
enableExecuteCommand: true,
cpu: props.cpu || 512, // 0.5 vCPU
Expand Down
28 changes: 28 additions & 0 deletions packages/graphql-mesh-server/lib/graphql-mesh-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,34 @@ export type MeshHostingProps = {
* @default authentication-table
*/
authenticationTable?: string;

/**
* Specify a name for the ECS cluster
*
* @default - AWS generated cluster name
*/
clusterName?: string;

/**
* Specify a name for the GraphQL service
*
* @default - AWS generated service name
*/
serviceName?: string;

/**
* Specify a name for the ECR repository
*
* @default - AWS generated repository name
*/
repositoryName?: string;

/**
* Specify a name for the task definition family
*
* @default - AWS generated task definition family name
*/
taskDefinitionFamilyName?: string;
};

export class MeshHosting extends Construct {
Expand Down

0 comments on commit 1038c12

Please sign in to comment.