pulumi-cloudflare icon indicating copy to clipboard operation
pulumi-cloudflare copied to clipboard

failed updating email routing rule: required rule id missing

Open ZakkProjects opened this issue 8 months ago • 3 comments

Describe what happened

Hi im using Pulumi in combination with SST, but it seems that it might be issue of Pulumi or terraform adapters Im trying to create a rule to redirect email coming to my domain.

Creation and deletion on email routing rule passes correctly but every update fails with error.

Sample program

Ive used this code

        new cloudflare.EmailRoutingRule("CfEmailRedirects", {
            zoneId: process.env.CLOUDFLARE_ZONE_ID!,
            name: "CfEmailRedirects",
            enabled: true,
            matchers: [
                {
                    type: "literal",
                    field: "to",
                    value: "[email protected]",
                },
                {
                    type: "all",
                },
            ],
            actions: [
                {
                    type: "forward",
                    values: ["-------.---"],
                },
            ],
            priority: 0,
        });

Log output

{"sequence":56,"timestamp":1719241324,"diagnosticEvent":{"urn":"urn:pulumi:zakk::makovsky::cloudflare:index/emailRoutingRule:EmailRoutingRule::CfEmailRedirects","prefix":"error: ","message":"failed updating email routing rule: required rule id missing\n","color":"never","severity":"error"},"Error":null}

Affected Resource(s)

cloudflare:EmailRoutingRule

Output of pulumi about

no way to run command trough sst

Additional context

No response

Contributing

No response

ZakkProjects avatar Jun 24 '24 15:06 ZakkProjects