f5devcentral / terraform-modular-demo-framework

Apache License 2.0
5 stars 3 forks source link

Missing input variable domain #45

Closed mjmenger closed 1 year ago

mjmenger commented 1 year ago

When running terragrunt run-all apply, the module in aws-site-1-app-vm complains about a missing input variable. Should the terragrunt.hcl.example be updated?

Error: No value for required variable
│ 
│   on variables.tf line 16:
│   16: variable "domain_name" {
│ 
│ The root module input variable "domain_name" is not set, and has no default
│ value. Use a -var or -var-file command line argument to provide a value for
│ this variable.
╵
ERRO[1578] Terraform invocation failed in /.../aws-site-1-app-vm/.terragrunt-cache/marble-farble-warble-garble  prefix=[/.../aws-site-1-app-vm] 
INFO[1578] Executing hook: missing_var                   prefix=[/.../aws-site-1-app-vm] 
missing required input variable. check your terragrunt.hcl input{} block.
ERRO[1578] Module /.../aws-site-1-app-vm has finished with an error: 1 error occurred:
        * exit status 1
  prefix=[/.../aws-site-1-app-vm] 
ERRO[1578] 1 error occurred:
        * exit status 1
JeffGiroux commented 1 year ago

You are correct. In my testing on my local HCL file, I have a domain name. Since that file is in .gitignore, it was missed in previous commit and PR.

example...

inputs = {
    projectPrefix          = "giroux1"
    resourceOwner          = "giroux"
    domain_name            = "giroux-frontend.mydomain.com"
JeffGiroux commented 1 year ago

Add necessary change to the files. See PR...