Skip to content

endpoints fail with terraform 0.12.29 (which is allowed) - cannot run plan&apply of complete example #646

@tbugfinder

Description

@tbugfinder

endpoints = var.create ? var.endpoints : tomap({})

$ terraform -version
Terraform v0.12.29

###

terraform init
terraform plan
Error: Inconsistent conditional result types

  on ../../modules/vpc-endpoints/main.tf line 2, in locals:
   2:   endpoints = var.create ? var.endpoints : tomap({})
    |----------------
    | var.create is true
    | var.endpoints is object with 14 attributes

The true and false result expressions must have consistent types. The given
expressions are object and map of dynamic, respectively.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions