Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support custom waf name for mesh #1352

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading