Skip to content

feature: Change the default version of providers in config.hcl from latest to ~version-of-latest #908

@erezrokah

Description

@erezrokah

When someone runs cloudquery init aws we generate the following configuration:

cloudquery {
  provider "aws" {
    version = "latest"
  }
....

This means that if we break providers we automatically break all existing versions of CloudQuery that use the default setting.
A possible solution will be to use:

cloudquery {
  provider "aws" {
    version = "~0.12.8"
  }
....

If we add range support, this will prevent us from breaking existing CloudQuery versions when breaking providers, while still ensuring updates to latest patch version.

This solution assumes the user is running on a recent version of CloudQuery that supports the latest provider during init. To support matching old CloudQuery versions to supported providers we'll need a different mechanism.

We could even print a notice that a newer provider version exists, but say it's a breaking one and require an update to the core (and might also require other migrations like config changes, updating postgres, etc.)

Metadata

Metadata

Assignees

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