Ludovic VUE
05/06/2022, 9:42 AM@serverless-stack/resources
as far as i knowGabriel Bleu
05/06/2022, 4:21 PMaws-cdk-lib
, might help https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CloudFrontWebDistributionProps.html#webaclid
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wafv2.CfnWebACL.htmlFrank
Frank
import { CfnWebACL } from "aws-cdk-lib/aws_waf";
const cfnWebACL = new CfnWebACL(stack, 'MyCfnWebACL', {
...
});
Frank
Ludovic VUE
05/10/2022, 7:51 PMLudovic VUE
05/10/2022, 10:27 PMError: construct does not have an associated node. All constructs must extend the "Construct" base class
Just trying:
import { aws_wafv2 as wafv2 } from "aws-cdk-lib";
const cfnIPSet = new wafv2.CfnIPSet(stack, "MyCfnIPSet", {
addresses: [
"2a01:0e0a:*****************/128",
],
ipAddressVersion: "IPV6",
scope: "CLOUDFRONT",
description: "description",
name: "test-cdk",
});