Skip to content
New issue

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

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

Already on GitHub? # to your account

Invalid value for input variable: when input is null #2076

Closed
PePoDev opened this issue Apr 19, 2022 · 2 comments
Closed

Invalid value for input variable: when input is null #2076

PePoDev opened this issue Apr 19, 2022 · 2 comments

Comments

@PePoDev
Copy link

PePoDev commented Apr 19, 2022

For example, Use this module

terraform {
  source = "tfr:///terraform-aws-modules/vpc/aws//.?version=3.14.0"
}

inputs = {
  private_subnet_assign_ipv6_address_on_creation = null
}
variable "private_subnet_assign_ipv6_address_on_creation" {
  description = "Assign IPv6 address on private subnet, must be disabled to change IPv6 CIDRs. This is the IPv6 equivalent of map_public_ip_on_launch"
  type        = bool
  default     = null
}
│ Error: Invalid value for input variable
│ 
│ The environment variable
│ TF_VAR_private_subnet_assign_ipv6_address_on_creation does not contain a
│ valid value for variable "private_subnet_assign_ipv6_address_on_creation ":
│ a bool is required.
@yorinasub17
Copy link
Contributor

yorinasub17 commented Apr 19, 2022

This is a duplicate of #892, which has explanation of why this bug exists (and why it's hard to fix), as well as a suggested workaround.

@yorinasub17
Copy link
Contributor

Closing as duplicate - please follow #892 for updates on when we tackle/publish a fix for this in terragrunt.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants