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

importing... #188

Open jmvanryn opened 5 months ago

jmvanryn commented 5 months ago

So I already have a working bitbucket, I'm attempting to import..

currently when I try terraform import bitbucket_deployment.infra-aiservices-eng {d665ca98-5924-41a7-8b58-c1f35d85ae82}/{70084221-4725-4747-84bd-df68f8850c34} (numbers changed)

but I get ╷ │ Error: unexpected format of ID ("{d665ca98-5924-41a7-8b58-c1f35d85ae82}/{70084221-4725-4747-84bd-df68f8850c34}"), expected REPO-ID:DEPLOYMENT-UUID │ │ ╵ could anyone provide information on where / how to find the uuid's that are required and also validate if the deployment import works?

mnhat3896 commented 1 month ago

got the same issue and here is the way I found it, go to the deployment tab, inspect the page (F12), go to tab network and search variable Screenshot_17

Or for scripting, you can try to call API: https://community.atlassian.com/t5/Bitbucket-questions/Re-How-to-get-variable-uuid/qaq-p/1497701/comment-id/58475#M58475