From 63adb82f4c490643ab67435bd6b7b446c955dc6b Mon Sep 17 00:00:00 2001 From: Kieran Brown Date: Thu, 19 Sep 2024 15:55:06 +0100 Subject: [PATCH] feat: support associating cdn to a waf (#4) --- src/laravel/cdn/index.ts | 4 +++- src/laravel/index.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/laravel/cdn/index.ts b/src/laravel/cdn/index.ts index 0f15340..20a5ec7 100644 --- a/src/laravel/cdn/index.ts +++ b/src/laravel/cdn/index.ts @@ -26,6 +26,7 @@ type CDNArgs = { cert: pulumi.Input, } name: string, + webAclId: pulumi.Input | undefined, webFunctionUrl: pulumi.Output, } @@ -127,7 +128,8 @@ export class CDN extends pulumi.ComponentResource { acmCertificateArn: args.domain.cert, minimumProtocolVersion: 'TLSv1.2_2021', sslSupportMethod: 'sni-only', - } + }, + webAclId: args.webAclId, }); } diff --git a/src/laravel/index.ts b/src/laravel/index.ts index c06ec20..bdfa376 100644 --- a/src/laravel/index.ts +++ b/src/laravel/index.ts @@ -13,7 +13,8 @@ type ComponentArgs = { name: Input, aliases?: Input, cert: Input, - } + }, + webAclId: Input | undefined, }, functions: { artisan: FunctionArgs, @@ -60,6 +61,7 @@ export class BrefLaravel extends ComponentResource { comment: args.cdn.comment, domain: args.cdn.domain, name: args.name, + webAclId: args.cdn.webAclId, webFunctionUrl: webLambda.nodes.functionUrl.functionUrl, });