Hello, I am trying to create a wafv2 and assign a...
# typescript
f
Hello, I am trying to create a wafv2 and assign an ipset to it. I have tried to look at the documentation but it times out on my browser. Here is my code: `export const wafipSet = new aws.wafv2.IpSet(
${config.Stack}-ipset
, {`
addresses: [
"1.2.3.4/32",
"5.6.7.8/32",
],
`description:
${config.Stack}-description
,`
ipAddressVersion: "IPV4",
scope: "CLOUDFRONT",
}, { provider: usEast1 });
`export const wafAcl = new aws.wafv2.WebAcl(
${config.Stack}-wafAcl
, {`
scope: "CLOUDFRONT",
defaultAction: {
block: {},
},
visibilityConfig: {
cloudwatchMetricsEnabled: false,
`metricName:
${config.dtack}-waf-metric
,`
sampledRequestsEnabled: false,
},
}, { provider: usEast1 });
Does anyone by chance know how to assign this ipset to the wafacl? Thank you very much in advanced!