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

is sonarcloud a working provider? #128

@5er9e1

Description

@5er9e1

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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions