Introduction
TFE workspace is connected to VCS repository on Bitbucket Cloud and the repository's webhook has been deleted on Bitbucket:
Expected Outcome
All the commits will be working again between TFE and Bitbucket.
Prerequisites (if applicable)
- Terraform Enterprise connected to Bitbucket VCS repository
Use Case
Recreate the deleted webhook in the repository from Bitbucket Cloud using Terraform Enterprise UI.
Procedure
- In Terraform Enterprise, go to the workspace's Settings that is connected to the repository with the deleted webhook in Bitbucket Cloud:
- Choose the Change Source button to change your TFE workspace from VCS workflow driven to CLI workflow driven:
- Going forward, the workspace needs to be changed back to VCS driven workflow from CLI driven workflow:
- Now connect to Bitbucket Cloud again:
- Choose the repository:
- Scroll down to the bottom of the screen to update the VCS settings:
- Now, check the Bitbucket Cloud Webhook and notice the webhook has been created automatically back on the repository: