# Terraform Cloud - changing VCS branch triggers plan

**URL:** <https://discuss.hashicorp.com/t/terraform-cloud-changing-vcs-branch-triggers-plan/36888>\
**Category:** HCP Terraform\
**Tags:** hcp-terraform\
**Created:** [March 10, 2022, 3:01pm UTC](https://discuss.hashicorp.com/t/terraform-cloud-changing-vcs-branch-triggers-plan/36888 "2022-03-10T15:01:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bozho](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/bozho/32/12787_2.png) [@bozho](https://discuss.hashicorp.com/u/bozho)\
**Post date:** [March 10, 2022, 3:01pm UTC](https://discuss.hashicorp.com/t/terraform-cloud-changing-vcs-branch-triggers-plan/36888/1 "2022-03-10T15:01:32Z")

</div>

Hi,

We have a Terraform+Ansible project, hosted on GitLab. Our Terraform Cloud has a workspace tracking the `master` branch on the repository, triggered only on changes to the terraform configuration directory. That works well.

However, we are currently testing changes to our infrastructure, which currently live on a feature branch. I’ve noticed that whenever I switch between the branches in workspace VCS settings, a plan is triggered even if there were no changes in the monitored directory (e.g. an unrelated merge). Even the `Trigger` line in the plan says `Unable to detect changed files`.

Is this expected, or a bug?

Thank you,  
Marko

---

<div class="post-metadata">

**Author:** ![qwerty1979bg](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/qwerty1979bg/32/7227_2.png) [@qwerty1979bg](https://discuss.hashicorp.com/u/qwerty1979bg)\
**Post date:** [March 22, 2022, 1:17pm UTC](https://discuss.hashicorp.com/t/terraform-cloud-changing-vcs-branch-triggers-plan/36888/2 "2022-03-22T13:17:48Z")

</div>

Hello Marko,

This is the expected behaviour.

When you update the VCS settings for a workspace, Terraform Cloud will ingress the latest commit from the tracked branch and trigger a run with it.

Regards,  
Filip

---

<div class="post-metadata">

**Author:** ![bozho](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/bozho/32/12787_2.png) [@bozho](https://discuss.hashicorp.com/u/bozho)\
**Post date:** [March 22, 2022, 1:53pm UTC](https://discuss.hashicorp.com/t/terraform-cloud-changing-vcs-branch-triggers-plan/36888/3 "2022-03-22T13:53:48Z")

</div>

Thank you very much! Just needed to adjust my workflow a bit.

---

<div class="post-metadata">

**Author:** ![usamafarhat](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/usamafarhat/32/47059_2.png) [@usamafarhat](https://discuss.hashicorp.com/u/usamafarhat)\
**Post date:** [February 13, 2026, 6:55pm UTC](https://discuss.hashicorp.com/t/terraform-cloud-changing-vcs-branch-triggers-plan/36888/4 "2026-02-13T18:55:22Z")

</div>

Hello,

Could you please advise on how to prevent automatic Terraform runs triggered by VCS changes?

Currently, whenever I create a workspace and initiate a Terraform run using the API, it also triggers an additional run automatically. As a result, I end up with two runs, with one remaining in the queue. Based on the run message, it appears that the additional run is triggered due to VCS activity.

I would like to disable the auto-trigger caused by VCS changes and manage run execution exclusively through our backend. Could you please guide me on the recommended approach to achieve this?

Thank you in advance for your assistance.
