Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

is sonarcloud a working provider? #128

Open
5er9e1 opened this issue Jan 18, 2023 · 1 comment
Open

is sonarcloud a working provider? #128

5er9e1 opened this issue Jan 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@5er9e1
Copy link

5er9e1 commented Jan 18, 2023

My code is just a simple example:

terraform {
  required_providers {
    sonarcloud = {
      source  = "rewe-digital/sonarcloud"
      version = "~> 0.1.1"
    }
  }
  # terraform v1.2 is used
  required_version = "~> 1.2"
}

provider "sonarcloud" {
  organization = "my-org-name" 
  token        = "github_actions_key"
}

resource "sonarcloud_project" "first_project" {
  key        = "uuuuuuniq-test-project"
  name       = "My not-unique project name"
  visibility = "public"
}

And I've got a error:

╷
│ Error: Invalid resource type
│
│   on proj.tf line 1, in resource "sonarcloud_project" "first_project":
│    1: resource "sonarcloud_project" "backend_project" {
│
│ The provider rewe-digital/sonarcloud does not support resource type "sonarcloud_project".
╵

But sonarcloud_project is a first resource type described in the documentation

How it may be explained?

@5er9e1 5er9e1 added the bug Something isn't working label Jan 18, 2023
@5er9e1
Copy link
Author

5er9e1 commented Jan 18, 2023

Oh, the problem happens because I set version = "~> 0.1.1". But latest version is 0.5.2

It looks like documentation should be updated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants