Updating the project in gitlab_project_hook resource has no effect
## Bug Report
Given this config with provider 16.9.1, changing the "project" parameter causes the following plan which applies successfully but achieves nothing.
The next plan/apply produces the same plan.
Changing the project should probably trigger a recreation, similar to #6179 (closed)
Relevant Terraform Configuration
resource "gitlab_project_hook" "hook" {
project = "devops/tests/atlantis-dummy-cloud-platform"
url = "https://${aws_route53_record.atlantis.name}/events"
merge_requests_events = true
push_events = true
note_events = true
token = random_password.gitlab_webhook_secret.result
}
Relevant Terraform Command
terraform apply
The next plan/apply produces the same plan.
Relevant Log Output
These are the debug logs of the `terraform` command output:
# gitlab_project_hook.hook will be updated in-place
~ resource "gitlab_project_hook" "hook" {
id = "devops/tests/cloud-platform-po-approval-poc:1264"
~ project = "devops/tests/cloud-platform-po-approval-poc" -> "devops/tests/atlantis-dummy-cloud-platform"
# (17 unchanged attributes hidden)
}
Additional Details
- GitLab Terraform Provider Version: `16.9.1`
- GitLab Version: `16.9.2`
- Terraform Version: `1.7.4`
Edited by Philipp