Skip to content

Add CLI command to upgrade lock file without full initialization #27161

Open
@secustor

Description

@secustor

Current Terraform Version

0.14.0

Use-cases

Currently to update the Terraform lock file a complete init has to be performed, but there are cases when the Dev has not all the configuration options available e.g. blob storage access keys for the backend.
Therefore he can not run terraform init -upgrade.

The same goes for centrally run tooling, where you want to also split up the secret management.

Attempted Solutions

Locally the user can remove the backend block temporarily.
Automation has not this option available.

Proposal

Add a flag which prevents the backend initialization terraform init -upgrade -skip-backend

Would you accept a PR for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions