Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Improvements for Importing Resources #5

Closed
wants to merge 2 commits into from

Conversation

padraic-padraic
Copy link

Some small improvements for importing existing resources.

This PR adds the default importer to bitbucket_project, as resourceProjectRead is able to initialise the resource from it's ID alone (c.f. https://www.terraform.io/docs/extend/resources/import.html#importer-state-function).

We also fix a small issue with resourceRepositoryRead, causing it to fail if pipelines have never been enabled. In this case the Bitbucket API returns 404. This fixes an old outstanding issue with this provider

API returns 404 if the pipelines have never been enabled
@padraic-padraic
Copy link
Author

If you have any questions or anything about this do let me know! Starting to use Terraform at work and we'd need this functionality in the provider. Same goes for #6.

@helders
Copy link

helders commented Nov 4, 2021

This would be bery helpful, any plans to merge it?

@aeirola
Copy link
Owner

aeirola commented Jan 21, 2022

Unfortunately, this fork is not longer maintained, and is being deprecated. Please submit the PR to one of the other forks, for example https://github.com/DrFaust92/terraform-provider-bitbucket

@aeirola aeirola closed this Jan 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants