DrFaust92 / terraform-provider-bitbucket

Terraform Bitbucket Cloud provider.
https://registry.terraform.io/providers/drfaust92/bitbucket
Mozilla Public License 2.0
38 stars 30 forks source link

Add support for import of bitbucket_repository_variable #186

Closed giveadamakick closed 10 months ago

giveadamakick commented 10 months ago

Terraform Version

1.6.4

Affected Resource(s)

Terraform Configuration Files

import {
  id = "{9782944d-c0d0-4693-af7c-a1cfbfc19f1b}/{a98a3ffs-532c-2110-a6e5-a09d4535c35e}"
  to = my_api.bitbucket_repository_variable.aws_default_region
}

Expected Behavior

The Bitbucket repository variable identified by repo id/uuid should have been imported into the Terraform state at the resource address given.

Actual Behavior

A Error: resource bitbucket_repository_variable doesn't support import message was displayed.

Steps to Reproduce

  1. terraform plan

Important Factoids

Get a variable for a repository exists as an endpoint in the Bitbucket Cloud API, meaning import should be possible.