Use empty string for template file interpolation to avoid null error in terraform when rendering the user-data.txt.
In this particular case since use_ssm is passed to the template and fails the bash condition, it doesn't really matter what the value of wg_server_private_key_aws_ssm_name because it would never be evaluated, but we set it to "" to be logically as close to null as possible while making sure interpolation doesn't have a null value.
Use empty string for template file interpolation to avoid null error in terraform when rendering the
user-data.txt
.In this particular case since
use_ssm
is passed to the template and fails the bash condition, it doesn't really matter what the value ofwg_server_private_key_aws_ssm_name
because it would never be evaluated, but we set it to""
to be logically as close tonull
as possible while making sure interpolation doesn't have a null value.fixes #4