One thing to note is that there are references to both ${var.public_key_file} (in main.tf) and as well as TF_VAR_key_file (in util.sh), so both TF_VAR_public_key_file and TF_VAR_key_file need to be defined.
It might be better to merge these variables into a single one.
One thing to note is that there are references to both
${var.public_key_file}
(inmain.tf
) and as well asTF_VAR_key_file
(inutil.sh
), so bothTF_VAR_public_key_file
andTF_VAR_key_file
need to be defined.It might be better to merge these variables into a single one.