Skip to content

Commit

Permalink
feat: support associating cdn to a waf (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranbrown authored Sep 19, 2024
1 parent e65509d commit 63adb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/laravel/cdn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type CDNArgs = {
cert: pulumi.Input<string>,
}
name: string,
webAclId: pulumi.Input<string> | undefined,
webFunctionUrl: pulumi.Output<string>,
}

Expand Down Expand Up @@ -127,7 +128,8 @@ export class CDN extends pulumi.ComponentResource {
acmCertificateArn: args.domain.cert,
minimumProtocolVersion: 'TLSv1.2_2021',
sslSupportMethod: 'sni-only',
}
},
webAclId: args.webAclId,
});
}

Expand Down
4 changes: 3 additions & 1 deletion src/laravel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ type ComponentArgs = {
name: Input<string>,
aliases?: Input<string[]>,
cert: Input<string>,
}
},
webAclId: Input<string> | undefined,
},
functions: {
artisan: FunctionArgs,
Expand Down Expand Up @@ -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,
});

Expand Down

0 comments on commit 63adb82

Please sign in to comment.