-
Notifications
You must be signed in to change notification settings - Fork 632
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
Terraform import/plan crashes after 2.18.0 upgrade #935
Comments
Just to confirm here, you're |
Yes, sorry just edited to add a bit more details as I pressed submit too early. I was trying to figure out how to set up some conditions that were not in the documentation. So I applied the initial change then manually edited it via the UI and was expecting
|
The API (and here Terraform) doesn't yet support WARP attributes so that isn't going to be managed at the current time. We don't generally add support until the teams add public API support for it and commit to an interface they will continue to support. I can chase up this internally for a timeline. Editing combined Access policies in the UI actually gives them a new ID which Terraform won't be able to manage. It doesn't look like that is the issue here but just FYI in case that pops up. As for Gsuite, I'll have to spin up a full integration test for that as we don't current have a good way to test it automatically. In the meantime, you should manage your policies either via the UI or Terraform; not both. |
Thanks for pointing that out. I saw the API was showing it but if it's not publicly supported it makes sense.
Ok, good to know.
Ok, I'll stick with the UI for now. Trying to create a new group, the following still causes a crash when trying to resource "cloudflare_access_group" "test_warp" {
account_id = var.cloudflare_account_id
name = "Test WARP"
include {
email_domain = ["example.com"]
}
require {
gsuite {
email = ["[email protected]"]
identity_provider_id = cloudflare_access_identity_provider.gsuite_oauth.id
}
}
} |
With the fixes and refactor in v2.18.0, I copied and pasted the wrong attribute for the GSuite configuration, resulting in a crash. This updates the attribute being accessed to be the correct one and prevents the crash. Fixes #935
Hi, is there an ETA on when 2.19.0 will be released? We're currently suffering from this bug but can't revert to an older version as using new resource |
no ETA at the moment; likely in the next week or so though once the 0.14 if you need the changes immediately, you can build the provider locally following https://github.com/cloudflare/terraform-provider-cloudflare#building-the-provider |
Terraform version
Affected resource(s)
Terraform configuration files
Debug output
Panic output
https://gist.github.com/ouranos/4a778cb21dc80a35cca973b051b547e1
Expected behavior
The group is expected to be imported
Actual behavior
Terraform crashed
Steps to reproduce
terraform apply
terraform plan
Important factoids
The Cloudflare API reports this additional condition:
Also note that if trying to require Gateway connections by adding "Require: Warp = Warp",
terraform plan
won't detect this configuration change. The API report it properly:References
Community note
to the original issue to help the community and maintainers prioritize this request
request, please leave a comment
The text was updated successfully, but these errors were encountered: