Skip to content

Commit

Permalink
Merge pull request #1352 from aligent/feature/custom-mesh-waf-name
Browse files Browse the repository at this point in the history
feat: support custom waf name for mesh
  • Loading branch information
TheOrangePuff authored Apr 29, 2024
2 parents 9abe4b2 + 3123286 commit ea16a27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/graphql-mesh-server/lib/fargate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ export interface MeshServiceProps {
* SSM values to pass through to the container as secrets
*/
secrets?: { [key: string]: ssm.IStringParameter | ssm.IStringListParameter };
/**
* Name of the WAF
* Defaults to 'graphql-mesh-web-acl'
*/
wafName?: string;
/**
* List of IPv4 addresses to block
*/
Expand Down Expand Up @@ -457,6 +462,7 @@ export class MeshService extends Construct {
}

this.firewall = new WebApplicationFirewall(this, "waf", {
name: props.wafName,
scope: Scope.REGIONAL,
visibilityConfig: {
cloudWatchMetricsEnabled: true,
Expand Down
5 changes: 5 additions & 0 deletions packages/graphql-mesh-server/lib/graphql-mesh-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ export type MeshHostingProps = {
* Region of the SNS Topic that deployment notifications are sent to
*/
notificationRegion?: string;
/**
* Name of the WAF
* Defaults to 'graphql-mesh-web-acl'
*/
wafName?: string;
/**
* List of IPv4 addresses to block
*/
Expand Down

0 comments on commit ea16a27

Please sign in to comment.