Open hhkumar opened 5 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Terraform debug log detected :white_check_mark:
two things to help triage this one:
1) can you provide the debug log for when you've imported this resource?
2) i don't recommend using --refresh=false
, it doesn't make any remote calls to the API to evaluate the true diff and will be misleading in some cases.
@jacobbednarz thanks for your response!
Debug logs for when I imported this resource: https://gist.github.com/hhkumar/1d81dfafa99ce48e50f38fe5115eb01d I am seeing the same outcome with and without the refresh flag set to false. Let me know if you want me to upload the terraform plan output as well
I have also run into this issue as well as gotten the same results with cloudflare_access_application and cloudflare_zero_trust_access_application. I can produce logs if they're required but just wanted to add that the new application interface has the same behavior.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.6.2 on darwin_arm64
Affected resource(s)
cloudflare_access_application
Terraform configuration files
Link to debug output
https://gist.github.com/hhkumar/7dafa782af7a8f02a67cbcb5a09b3e61
Panic output
No response
Expected output
cors_header and self_hosted_domains field to be present in the terraform state file for the resource
Actual output
self_hosted_domains and cors_header fields are not set in the state file even though they exist in cloudflare UI
Steps to reproduce
Additional factoids
No response
References
No response