zahiar / terraform-provider-bitbucket

Terraform Provider for Bitbucket Cloud
https://registry.terraform.io/providers/zahiar/bitbucket/latest
Mozilla Public License 2.0
19 stars 22 forks source link

Add 'ForceNew' to 'repository' parameter of 'bitbucket_pipeline_variable' #179

Open dplacek opened 1 year ago

dplacek commented 1 year ago

The Bitbucket API does not provide the capability to change the 'repository' parameter of a pipeline variable (results in 404 error when trying to do so). This resource needs to be re-created if the 'repository' parameter changes. This update adds the 'ForceNew' parameter to make sure this happens.

https://developer.hashicorp.com/terraform/plugin/sdkv2/schemas/schema-behaviors#forcenew