Skip to content

Commit

Permalink
Merge pull request #1358 from aligent/feature/add-name-props
Browse files Browse the repository at this point in the history
chore: Add props to top level construct
  • Loading branch information
gowrizrh authored May 8, 2024
2 parents c0d4867 + ae5dfa8 commit 367f5ad
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/graphql-mesh-server/lib/fargate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ 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 367f5ad

Please sign in to comment.