Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import WAF rules #496

Open
casey-chow opened this issue Sep 27, 2023 · 0 comments
Open

Unable to import WAF rules #496

casey-chow opened this issue Sep 27, 2023 · 0 comments
Labels
area/import An issue related to `pulumi import` or the import resource option. kind/bug Some behavior is incorrect or out of spec

Comments

@casey-chow
Copy link

What happened?

I'm trying to import an existing Cloudflare WAF rule, and I get hit with this error:

Diagnostics:
  pulumi:pulumi:Stack (infrastructure-shared):
    error: preview failed

  cloudflare:index:FirewallRule (log-automated-traffic):
    error: Preview failed: importing XXXX/XXXX: importer for XXXX/XXXX returned a empty resource state. This is always the result of a bug in the resource provider - please report this as a bug in the Pulumi provider repository.

Example

pulumi import cloudflare:index/firewallRule:FirewallRule log-automated-traffic XXXX/XXX

Output of pulumi about

pulumi about
CLI
Version      3.81.0
Go Version   go1.21.0
Go Compiler  gc

Plugins
NAME    VERSION
nodejs  unknown

Host
OS       darwin
Version  13.6
Arch     arm64

This project is written in nodejs: executable='/Users/<user>/.asdf/shims/node' version='v18.15.0'

Current Stack: <org>/infrastructure/shared

TYPE                               URN
pulumi:pulumi:Stack                urn:pulumi:shared::infrastructure::pulumi:pulumi:Stack::infrastructure-shared
pulumi:providers:cloudflare        urn:pulumi:shared::infrastructure::pulumi:providers:cloudflare::default_5_5_0
cloudflare:index/zone:Zone         urn:pulumi:shared::infrastructure::cloudflare:index/zone:Zone::backbon3.com
pulumi:providers:gcp               urn:pulumi:shared::infrastructure::pulumi:providers:gcp::default_6_59_0
cloudflare:index/zone:Zone         urn:pulumi:shared::infrastructure::cloudflare:index/zone:Zone::backbone.gg
gcp:vpcaccess/connector:Connector  urn:pulumi:shared::infrastructure::gcp:vpcaccess/connector:Connector::connector

Found no pending operations associated with shared

Pulumi locates its logs in /var/folders/bh/81znqz_n7fx8b56x44sbfzzr0000gn/T/ by default
warning: Failed to get information about the Pulumi program's dependencies: could not find either /Users/casey/src/cloud/pulumi/infrastructure/yarn.lock or /Users/<user>/src/cloud/pulumi/infrastructure/package-lock.json

Additional context

No response

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).

@casey-chow casey-chow added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Sep 27, 2023
@mikhailshilkov mikhailshilkov added area/import An issue related to `pulumi import` or the import resource option. and removed needs-triage Needs attention from the triage team labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/import An issue related to `pulumi import` or the import resource option. kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants