Error after applying change to gitlab_user_runner
Bug Report
I get the error message after applying a change to a gitlab_user_runner ressource
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for gitlab_user_runner.docker-gitlab-runner-platform-runner-02.token. All values must be
│ known after apply, so this is always a bug in the provider and should be reported in the provider's own repository. Terraform will still save the other known
│ object values in the state.
╵
The terraform plan looks something like that (I changed paused value of resource in terraform code)
# gitlab_user_runner.docker-gitlab-runner-platform-runner-02 will be updated in-place
~ resource "gitlab_user_runner" "docker-gitlab-runner-platform-runner-02" {
id = "489"
~ paused = false -> true
+ token = (sensitive value)
# (7 unchanged attributes hidden)
}
The runner was previously imported using terraform import if its relevant. It was registered the old way a long time ago if its relevant.
I tried various terraform version (1.3.10, 1.5.7, 1.8.2) -->
Relevant Terraform Configuration
resource "gitlab_user_runner" "docker-gitlab-runner-platform-runner-02" {
runner_type = "instance_type"
description = "docker-gitlab-runner-platform-runner-02"
untagged = true
tag_list = []
paused = true #false
lifecycle {
prevent_destroy = true
}
}
Relevant Terraform Command
terraform apply
Relevant Log Output
Additional Details
- GitLab Terraform Provider Version:
17.2.0
- GitLab Version:
17.1.3
- Terraform Version:
1.3.10, 1.5.7, 1.8.2
Edited by Jens Hofmann