I have a simple project that creates DigitalOcean droplets. As part of the droplet creation, I need to inject a list of SSH key fingerprints to the authorized keys list.
When I add these as Terraform Variables in the UI
The resulting run fails with the following error.
Terraform v0.12.23 Configuring remote state backend... Initializing Terraform configuration... 2020/03/09 15:09:44 [DEBUG] Using modified User-Agent: Terraform/0.12.23 TFC/896fd11ba6 Error: Invalid value for input variable on /terraform/terraform/terraform.tfvars line 4: 4: ssh_fingerprints = "[\"fingerprint_1\", \"fingerprint_2\"]" The given value is not valid for variable "ssh_fingerprints": list of string required.
But, if I change the variable definition to be parsed as HCL, then it works.
Why would using
["fingerprint_1", "fingerprint_2"] as is not work?