import cloudflare_record of type SRV results in empty data-array in tfstate #1714
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
service/dns
Categorizes issue or PR as related to the DNS service.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Milestone
Confirmation
Terraform and Cloudflare provider version
Terraform v1.2.2
Cloudflare provider v3.17.0
Affected resource(s)
cloudflare_record
Terraform configuration files
Debug output
Panic output
No response
Expected output
I expect the data-map to be properly imported into the terraform-state file.
The result should look like this (as it will/would when creating the resource):
Actual output
The data-map is missing in the terraform state, and thus, any "plan" or "apply" would result in terraform, trying to update the resource, although there is no difference.
The tfstate after import looks as follows:
Attention should be paid to the empty data-array (
"data": [],
)Steps to reproduce
Additional factoids
Executing "terraform apply" and thus creating an SRV-record will properly create it and the tfstate will have the data-array filled - although with all possible keys, even if they're not explicitly in the config.
References
No response
The text was updated successfully, but these errors were encountered: