Skip to content

AWS provider version in the .terraform.lock.hcl file conflicts with required_providers versions in modules #1

Open
@trevorrobertsjr

Description

@trevorrobertsjr

Please consider either removing the .terraform.lock.hcl file (or adding it to .gitignore) or removing required_providers versions from the modules.

Otherwise, students will encounter the following error:
╷ │ Error: Failed to query available provider packages │ │ Could not retrieve the list of available versions for provider hashicorp/aws: locked provider │ registry.terraform.io/hashicorp/aws 3.56.0 does not match configured version constraint >= 3.72.0; │ must use terraform init -upgrade to allow selection of new versions ╵

The lock file currently specifies version 3.56.0, and the modules specify >=3.72.0.

I have resolved this conflict by deleting the lock file in my repo. So, I am running the latest aws and kubernetes providers as a result.

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