terraform-provider-gitlab icon indicating copy to clipboard operation
terraform-provider-gitlab copied to clipboard

Documentation includes unsupported argument

Open octopus20 opened this issue 1 year ago • 1 comments

GitLab Provider version

3.18.0

GitLab version

No response

Terraform version

1.2.9

Relevant Terraform Configuration

resource "gitlab_group_saml_link" "test123" {
  group_id        = "12345"
  access_level    = "developer"
  saml_group_name = "samlgroupname1"
}

Relevant log output

│ Error: Missing required argument
│
│   on main.tf line 24, in resource "gitlab_group_saml_link" "test13":
│   24: resource "gitlab_group_saml_link" "test13" {
│
│ The argument "group" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│   on main.tf line 25, in resource "gitlab_group_saml_link" "test13":
│   25:   group_id        = "devops-test1"
│
│ An argument named "group_id" is not expected here.

Description

In provider documentation here the resource uses group_id to link saml group with gitlab group, but after terraform applied the resource is shows the group_id is not supported argument and argument "group" is required, but no definition was found.

octopus20 avatar Sep 20 '22 08:09 octopus20

Unfortunately, the example in the docs is wrong. Supported is group and not group_id.

Thanks for the report! I've fixed it in #1256 🎉

timofurrer avatar Sep 20 '22 09:09 timofurrer