D10S0VSkY-OSS / Stack-Lifecycle-Deployment

OpenSource self-service infrastructure solution that defines and manages the complete lifecycle of resources used and provisioned into a cloud! It is a terraform UI with rest api for terraform and OpenTofu automation
MIT License
227 stars 34 forks source link

default values for terraform - how is null treated #277

Open CatchKarthik opened 1 month ago

CatchKarthik commented 1 month ago

Discussed in https://github.com/D10S0VSkY-OSS/Stack-Lifecycle-Deployment/discussions/276

Originally posted by **CatchKarthik** July 11, 2024 Trying to use this tool for the first time and was using the terraform community modules to test it. The EC2 module has lot of default variables that are declared as null. When deploying that module using SLD, it errors out. `The given value is not suitable for var.cpu_core_count declared at variables.tf:281,1-26: a number is required. Error: Invalid value for input variable` The cpu_core_count variable by default is declared as null in the community module but the tool when executing the plan considers it as "null" (a string) `"cpu_core_count": "null"` Has anyone faced this issue or is it just me? What am I doing wrong?