cyrilgdn / terraform-provider-postgresql

Terraform PostgreSQL provider
https://www.terraform.io/docs/providers/postgresql/
Mozilla Public License 2.0
376 stars 194 forks source link

provider in terraform 0.12.x #250

Closed debek closed 2 years ago

debek commented 2 years ago

Hello,

In documentation of terraform provider I see that terraform 0.12.x is supported but for me, it doesn't work. Can you tell me if I am making something wrong or if you have an issue with README about requirements?

Terraform Version

❯ terraform -v
Terraform v0.12.31

Your version of Terraform is out of date! The latest version
is 1.2.9. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

Terraform Configuration Files

  required_providers {
    postgresql = {
      source  = "cyrilgdn/postgresql"
      version = ">=1.17.1"
    }
  }

Debug Output

❯ terraform2 init

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "random" (hashicorp/random) 3.4.3...

No provider "postgresql" plugins meet the constraint ">=1.17.1".

The version constraint is derived from the "version" argument within the
provider "postgresql" block in configuration. Child modules may also apply
provider version constraints. To view the provider versions requested by each
module in the current configuration, run "terraform providers".

To proceed, the version constraints for this provider must be relaxed by
either adjusting or removing the "version" argument in the provider blocks
throughout the configuration.

Warning: Provider source not supported in Terraform v0.12

  on main.tf line 3, in terraform:
   3:     postgresql = {
   4:       source  = "cyrilgdn/postgresql"
   5:       version = ">=1.17.1"
   6:     }

A source was declared for provider postgresql. Terraform v0.12 does not
support the provider source attribute. It will be ignored.

(and 4 more similar warnings elsewhere)

Error: no suitable version is available
debek commented 2 years ago

https://discuss.hashicorp.com/t/postgres-provider-in-terraform-0-12-x/44185/2