Skip to content

Conversation

MarcMeszaros
Copy link
Contributor

@MarcMeszaros MarcMeszaros commented May 25, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When use_ssm is off there is a template issue in user-data.txt
1 participant