ariga / terraform-provider-atlas

Terraform Provider for Atlas
https://atlasgo.io
Apache License 2.0
55 stars 8 forks source link

Atlas provider latest versions not working #163

Open danielpina-hei opened 1 month ago

danielpina-hei commented 1 month ago

Hello team,

Found this error when running terraform:

│ Error: Check atlas version failure
│
│   with provider["registry.terraform.io/ariga/atlas"],
│   on config.tf line 33, in provider "atlas":
│   33: provider "atlas" {
│
│ unexpected output format

Tried versions v0.8.4 v0.8.3 v0.8.0, but only got a successful plan with v0.7.0

Used terraform versions v1.5.7 and v1.8.5

My config.tf mirrors the example in the terraform documents:

terraform {
  required_version = "= 1.8.5"
  (...)
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
    (...)
    atlas = {
      source = "ariga/atlas"
      version = "0.7.0"
    }
  }
}

provider "aws" {
  region = var.aws_region
}

provider "atlas" {
  # Configuration options
}
rotemtam commented 1 month ago

Try upgrading Atlas to the latest version on your machine with:

curl -sSf https://atlasgo.sh | sh

(TF uses the atlas binary on your host)

@giautm - this needs a better error message and instructions for the user what to do.

danielpina-hei commented 1 month ago

thanks @rotemtam that worked. I never considered the version being a problem since I just installed atlas for the first time today. But clearly something different from atlas community version v0.27.1-ad1f1b0-canary to atlas version v0.27.1-c232679-canary

a8m commented 1 month ago

Hey, @danielpina-hei! The community version is not supported by TF or the other integrations.

danielpina-hei commented 1 month ago

Ah that would explain it @a8m I'm new to atlas so didn't pick that up. Had read https://atlasgo.io/community-edition but Integrations wasn't mentioned there at least directly as a non supported feature.

This ticket can probably closed as non planned