cf-terraforming
cf-terraforming copied to clipboard
Incorrect Terraform Code Generate and State Import
Confirmation
- [X] My issue isn't already found on the issue tracker.
- [X] I have replicated my issue using the latest version of the library and it is still present.
cf-terraforming version
0.19.0
Expected outcome
Expected to have the correct Terraform code generated and State Imported.
cloudflare_custom_ssl --> Identified that the Terraform Code was incomplete/incorrect (only zone_id was generated for custom ssl resource Terraform code), While the State contained most parameters for that resource. This led to a drift with Original configurations on Cloudflare
cloudflare_load_balancer --> Identified that the Terraform Code has parameters which are not Imported in the State. This causes a drift with every merge
Actual outcome
Expecting correct Terraform generate and State Import
Steps to reproduce
- Upload custom SSL certificate for your Zone in Cloudflare dashboard.
- use generate function of cf-terraforming to generate the Terraform code for cloudflare_custom_ssl resource of your zone from step-1
- Observe that the generated code only has Zone ID parameter
- Import State from the generated resource from Step-2
- Observe that State contains most parameters which are not part of generated Terraform Code.
- Perform Terraform Plan and observe that there is drift
References
No response