Open rpmccarter opened 1 month ago
Hi @rpmccarter. Thanks for filing an issue. This provider is generated from a terraform provider (https://github.com/cloudflare/terraform-provider-cloudflare). I recommend you create an issue https://github.com/cloudflare/terraform-provider-cloudflare in the upstream provider. If they make any change to their interface to support this use-case, we will incorporate it as soon as they release.
Hello!
Issue details
I have three environments that share a domain/zone. I want to create a subdomain and transform rule for each environment. I'm able to create a record for each environment (
dev.foo.com
,staging.foo.com
,prod.foo.com
), but when I attempt to create a transform rule for each environment, I get the following error:Here's the relevant code:
I've tried several different approaches:
cloudflare.Ruleset.get()
to get an existing ruleset and modify itsrules
property (type ofrules
property is an output, so I'm missing required values)cloudflare.getRulesets()
to get an existing ruleset and usenew Ruleset()
to recreate it with my new rule (getting indecipherable* Authentication error (10000)
from cloudflare) - even if this did work for rule creation, I'm sure it wouldn't be able to determine which rule to delete during teardownI'm familiar with the
awsx.ec2.DefaultVpc('default-vpc');
api which doesn't actually create/delete any resources, but just allows you to use the properties of that resource in subsequent resources. Perhaps something similar would work here?I realize this problem goes away if I buy two more zones in cloudflare, but I have to imagine this is a common enough problem, especially considering one production environment might have multiple pulumi stacks with a transform rule.
Affected area/feature