rough-jewelry-40643
04/30/2024, 12:54 PMwafv2
. Running pulumi up
does not come up clean even though nothing has changed. Pulumi's out put does some weird things.
It wants to "change" the following:
priority : 0 => 0
~ visibilityConfig: {
+ __defaults : []
~ cloudwatchMetricsEnabled: true => true
~ cloudwatchMetricsEnabled: true => true
~ metricName : "IPAllowRule" => "IPAllowRule"
~ metricName : "IPAllowRule" => "IPAllowRule"
Note that IPAllowRule
and cloudwatchMetricsEnabled
are doubled up for some reason unknown to me.
Does anyone know what's causing this?
Here are the relevant code snippets. Along with the full pulumi output
const myAcl = new aws.wafv2.WebAcl("MYACL", {
......
rules: [
{
action: {
allow: {},
},
name: "IPRule",
priority: 7,
statement: {
ipSetReferenceStatement: {
arn: IpSet.arn,
},
},
visibilityConfig: {
sampledRequestsEnabled: true,
cloudwatchMetricsEnabled: true,
metricName: "IPRule",
},
},
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:poc::MYSTACK::pulumi:pulumi:Stack::MYSTACK-poc]
~ aws:wafv2/webAcl:WebAcl: (update)
[id=ded6d29d-5318-4e98-aa14-777777777777]
[urn=urn:pulumi:poc::MYSTACK::aws:wafv2/webAcl:WebAcl::MYACL]
[provider=urn:pulumi:poc::MYSTACK::pulumi:providers:aws::default_6_31_0::911e0d16-9224-481c-8e0c-777777777777]
~ rules: [
~ [0]: {
~ action : {
+ __defaults: []
~ allow : {
+ __defaults: []
}
}
~ name : "IPAllowRule" => "IPAllowRule"
~ priority : 7 => 7
~ statement : {
+ __defaults : []
~ ipSetReferenceStatement: {
+ __defaults: []
~ arn : "arn:aws:wafv2:us-east-1:777777777777:regional/ipset/ip-set-7777777/8330068b-68e3-44e4-84fe-777777777777" => "arn:aws:wafv2:us-east-1:777777777777:regional/ipset/ip-set-7777777/8330068b-68e3-44e4-84fe-777777777777"
~ arn : "arn:aws:wafv2:us-east-1:777777777777:regional/ipset/ip-set-7777777/8330068b-68e3-44e4-84fe-777777777777" => "arn:aws:wafv2:us-east-1:777777777777:regional/ipset/ip-set-7777777/8330068b-68e3-44e4-84fe-777777777777"
}
}
~ visibilityConfig: {
+ __defaults : []
}
}
]
enough-garden-22763
04/30/2024, 1:32 PMrough-jewelry-40643
04/30/2024, 1:52 PMwaf
so that my code works cleanly and then update to v2 later?enough-garden-22763
04/30/2024, 1:55 PMrough-jewelry-40643
04/30/2024, 1:56 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by