Skip to content

Terraform 1.4.1 breaks older code in local #32859

@arnaudfroidmont

Description

@arnaudfroidmont

Terraform Version

terrform v1.4.1

- Finding oracle/oci versions matching "4.90.0"...
- Installing hashicorp/local v2.4.0...
- Installed hashicorp/local v2.4.0 (signed by HashiCorp)
- Installing hashicorp/template v2.2.0...
- Installed hashicorp/template v2.2.0 (signed by HashiCorp)
- Installing oracle/oci v4.90.0...
- Installed oracle/oci v4.90.0 (signed by a HashiCorp partner, key ID ^[[0m^[[1m1533A49284137CEB^[[0m^[[0m)
- Installing hashicorp/null v3.2.1...
- Installed hashicorp/null v3.2.1 (signed by HashiCorp)
- Installing hashicorp/random v3.4.3...
- Installed hashicorp/random v3.4.3 (signed by HashiCorp)

Terraform Configuration Files

We have not pinpointed the part of the code that was breaking, it seems like it is due to local files.

Debug Output

│ Error: Provider produced invalid plan

│ Provider "registry.terraform.io/hashicorp/local" planned an invalid value
│ for local_file.hosts.content: planned value cty.UnknownVal(cty.String) does
│ not match config value cty.UnknownVal(cty.String).RefineNotNull().

│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

Expected Behavior

Plan should go ahead without error

Actual Behavior

│ Error: Provider produced invalid plan

│ Provider "registry.terraform.io/hashicorp/local" planned an invalid value
│ for local_file.hosts.content: planned value cty.UnknownVal(cty.String) does
│ not match config value cty.UnknownVal(cty.String).RefineNotNull().

│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

Steps to Reproduce

terraform init
terraform plan

Additional Context

When replacing the terraform with v1.3.9, it works fine.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnewnew issue not yet triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions