-
Notifications
You must be signed in to change notification settings - Fork 625
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
Permissions for importing redirect ruleset #3932
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Terraform debug log detected ✅ |
Hi - I've included more extended logging in the gist attached. |
unfortunately, the terraform provider is just another HTTP client to the APIs and we don't do anything specific with permissions and there is very little we can do here. the URL it is calling looks correct so only permission issues remain. what i recommend is to:
if that fails, you're best off raising a support ticket to have the service team look into what is required. note: there is some work in the near future that will making tracking down these required permissions much easier, it's just not here yet. |
Thanks. FWIW, the developer docs (linked above) mention that as the minimum permissions, assuming this is the right type of resource |
that looks to be the correct docs for what you're after here. it could very well be out of date permissions or a service issue. the support folks can definitely get you sorted though! |
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
cloudflare_ruleset
Terraform configuration files
Link to debug output
https://gist.github.com/wyardley/3a3632946973138e54087bbf808f8cad
Panic output
No response
Expected output
I expected to be able to import the ruleset
Actual output
I am getting an error
Steps to reproduce
tf import cloudflare_ruleset.github zone/xxxx/yyyy
Additional factoids
I've set the Zone > Single Redirect > Edit permissions (as well as the regular DNS permissions for the zone) as per https://developers.cloudflare.com/rules/url-forwarding/single-redirects/create-api/#required-api-token-permissions
Is there an additional permission or set of permissions I should need to import this, or am I using the wrong import syntax?
I'm getting the ID for the ruleset from the URL of the edit ruleset page, and then using the zone's
References
No response
The text was updated successfully, but these errors were encountered: