Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use empty string for template file variables for interpolation #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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