Closed gmarkowski closed 4 months ago
Complete repro:
import * as aws from "@pulumi/aws";
const allowedIpSet = new aws.wafv2.IpSet("example", {
name: "example",
description: "Example IP set",
scope: "REGIONAL",
ipAddressVersion: "IPV4",
addresses: [
"1.2.3.4/32",
"5.6.7.8/32",
],
tags: {
Tag1: "Value1",
Tag2: "Value2",
},
});
const mainAcl = new aws.wafv2.WebAcl("main-acl", {
scope: "REGIONAL",
defaultAction: {
allow: {},
},
visibilityConfig: {
cloudwatchMetricsEnabled: true,
metricName: "myWebAclMetrics",
sampledRequestsEnabled: false,
},
captchaConfig: {
immunityTimeProperty: {
immunityTime: 1800
}
},
tokenDomains: [],
rules: [
{
action: {
block: {},
},
name: "IPAllowRule",
priority: 0,
statement: {
ipSetReferenceStatement: {
arn: allowedIpSet.arn,
},
},
visibilityConfig: {
cloudwatchMetricsEnabled: true,
metricName: "IPAllowRule",
sampledRequestsEnabled: true,
},
},
]
});
We are also running into this issue so we are looking forward to a fix for this 😃
This was fixed in https://github.com/pulumi/pulumi-aws/pull/3948. It'll be released in release 6.36.0
What happened?
I created a new wafv2.WebAcl. Everything gets built properly but subsequent
pulumi up
commands output differences in that are unexpected. I also see some changes doubled. SeecloudwatchMetricsEnabled
andmetricName
in the output below.Example
Output of
pulumi about
Additional context
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).