How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
B
Reference:
https://www.terraform.io/docs/cloud/vcs/index.html
B is correct answer. "In a workspace linked to a VCS repository, runs start automatically when you merge or commit changes to version control. A workspace is linked to one branch of a VCS repository and ignores changes to other branches. You can specify which files and directories within your repository trigger runs. " https://www.terraform.io/cloud-docs/run/ui#automatically-starting-runs
The answer is B. Commit a change to the VCS working directory and branch that the Terraform Cloud workspace is connected to. When you commit a change to a VCS repository that is connected to a Terraform Cloud workspace, Terraform Cloud will automatically trigger a run in the workspace. The run will use the latest state file in the workspace to determine what changes need to be made to the infrastructure.
B is the correct answer
Answer is B
Commit = Push to VCS. So, the correct answer is B. When we commit to VCS Repository thats automatically trigger run on the terraform cloud workspace
commit mean saving code into the VSC, it will trigger run in the terraform