Skip to content

default values for terraform - how is null treated #277

@CatchKarthik

Description

@CatchKarthik

Discussed in #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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions