terraform-provider-rundeck
terraform-provider-rundeck copied to clipboard
resource "rundeck_job" in the terraform gives the EOF error on 'terraform apply'
Terraform Version
v1.9.5
Rundeck Version
v5.7.1
Provider version
0.4.9
Affected Resource(s)
Please list the resources as a list, for example:
- rundeck_job
Terraform Configuration Files
resource "rundeck_job" "test" {
name = "test"
project_name = "test"
description = ""
command {
shell_command = "echo 'test'"
}
}
Expected Behavior
On 'terraform apply' it shouldn't give EOF error so that it can store the resources to the statefile to track the same.
Actual Behavior
rundeck_job.test: Creating...
╷
│ Error: EOF
│
│ with rundeck_job.test,
│ on configure-jobs.tf line 1, in resource "rundeck_job" "test":
│ 1: resource "rundeck_job" "test" {
│
╵
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
- GH-123
This issue has been reported in GH-123 but it was never fixed, people keep reporting in the old, closed issue.
Same issue here using Rundeck Enterprise v5.6.1
The terraform provider for rundeck is currently based on the XML API for Rundeck, which is disabled by default on 5.x (see here). Can you check if that's enabled, and if not try enabling it before running terraform apply?
Hello, I'm observing the same behaviour on v5.9.0-20250205 (no enterprise)
I just wanted to add that for me, the job actually succeeds creating, but this is not recorded in the TF state and therefore the job creation is reproposed in a subsequent TF plan
EDIT:
But I can confirm that adding rundeck.feature.legacyXml.enabled=true fixes my problem as described in https://github.com/rundeck/terraform-provider-rundeck/issues/156#issuecomment-2656135407
thanks @andrea-berling
So, if XML API is being deprecated, will this Provider also stop working? I was considering recommending Rundeck for a team to explore, but if Terraform/OpenTofu support is going away... Cheers.
We are aware of the dependency on XML for this provider and will be updating soon to modernize the provider.