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

Cloudflare - Import IP Access Rule per Zone Fail #475

Open
lodgify-chris opened this issue Aug 29, 2023 · 2 comments
Open

Cloudflare - Import IP Access Rule per Zone Fail #475

lodgify-chris opened this issue Aug 29, 2023 · 2 comments
Labels
area/import An issue related to `pulumi import` or the import resource option. impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec

Comments

@lodgify-chris
Copy link

What happened?

I am trying to import Cloudflare IP Access Rules for each zone but it seems to fail!

I can import properly IP Access Rules on the Account Level but not on the Zone Level!

Eg.

This works:
pulumi import cloudflare:index/accessRule:AccessRule <name> account/<account-id>/<rule-id>

This doesn't:
pulumi import cloudflare:index/accessRule:AccessRule <name> zone/<zone-id>/<rule-id>

For the Zone import I get the following:

cloudflare:index:AccessRule (testingrule):
error: Preview failed: importing zone/<zone-id>/<rule-id>: importer for zone/<zone-id>/<rule-id> 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.

Expected Behavior

Non-Empty Resource Response!

Steps to reproduce

Try with both to verify that:

Account level works:
pulumi import cloudflare:index/accessRule:AccessRule <name> account/<account-id>/<rule-id>

Zone level doesn't:
pulumi import cloudflare:index/accessRule:AccessRule <name> zone/<zone-id>/<rule-id>

Output of pulumi about

CLI
Version 3.78.1
Go Version go1.20.7
Go Compiler gc

Plugins
NAME VERSION
cloudflare 5.8.0
python unknown

Host
OS darwin
Version 13.4.1
Arch arm64

This project is written in python: executable='/usr/bin/python3' version='3.9.6
'

Current Stack: lodgify_devops/pulumi-cloudflare/pulumi-cloudflare

TYPE URN
pulumi:pulumi:Stack urn:pulumi:pulumi-cloudflare::pulumi-cloudflare::pulumi:pulumi:Stack::pulumi-cloudflare-pulumi-cloudflare

Found no pending operations associated with pulumi-cloudflare

Backend
Name pulumi.com
URL https://app.pulumi.com/lodgify_devops
User lodgify_devops
Organizations lodgify_devops

Dependencies:
NAME VERSION
chardet 3.0.4
cloudflare 2.11.6
dnspython 2.3.0
future 0.18.2
macholib 1.15.2
pip 21.2.4
pulumi-cloudflare 5.8.0
pycurl 7.45.2
pytest 6.0.1
setuptools 58.0.4
wheel 0.37.0

Pulumi locates its logs in /var/folders/6f/z7t5cc955t9br00qwmk36trr0000gq/T/ by default

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

@lodgify-chris lodgify-chris added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Aug 29, 2023
@iwahbe iwahbe added impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Aug 29, 2023
@iwahbe
Copy link
Member

iwahbe commented Aug 29, 2023

Hi @lodgify-chris. Thanks for opening this issue. I'm sorry that this isn't working as expected.

@lodgify-chris
Copy link
Author

Hi @iwahbe, are you aware of any work around for the moment we can use until this is fixed?

@mjeffryes mjeffryes added the area/import An issue related to `pulumi import` or the import resource option. label Sep 26, 2024
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. impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants