vainkop / terraform-aws-wireguard

Terraform Module for Wireguard VPN
GNU General Public License v3.0
25 stars 23 forks source link

Use empty string for template file variables for interpolation #6

Open MarcMeszaros opened 3 years ago

MarcMeszaros commented 3 years ago

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.

fixes #4