bitovi/github-actions-deploy-docker-to-ec2

`sub_domain` value is populated to `tf.vars` but isn't being used

PhillypHenning opened this issue · 1 comments

Logs

│ Warning: Value for undeclared variable
│ 
│ The root module does not declare a variable named "sub_domain" but a value was found in file
│ "terraform.tfvars". If you meant to use this value, add a "variable" block to the configuration.
│ 
│ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings
│ to all configurations in your organization. To reduce the verbosity of these warnings, use the
│ -compact-warnings option.

@PhillypHenning Is it possible that in your nfs branch this issue is present?

generate_tf_vars.sh

 sub_domain_name=
 if [ -z "$SUB_DOMAIN" ]; then
  sub_domain_name="sub_domain = \"$SUB_DOMAIN\""
 fi

Where it should be

 sub_domain_name=
 if [ -z "$SUB_DOMAIN" ]; then
  sub_domain_name="sub_domain_name = \"$SUB_DOMAIN\""
 fi