Open four43 opened 6 years ago
Hey all,
I seem to be getting 400 status codes when accessing an existing repository that was imported to this state.
Terraform v0.11.7 + provider.aws v1.25.0 + provider.bitbucket v1.0.0 + provider.external v1.0.0 + provider.local v1.1.0 + provider.random v1.3.1 + provider.template v1.0.0
Please list the resources as a list, for example:
resource "bitbucket_repository" "project_repo" { owner = "myaccount" name = "my-project" project_key = "api" scm = "git" is_private = true fork_policy = "no_public_forks" lifecycle { prevent_destroy = true } }
Resource was imported via terraform import bitbucket_repository.project_repo myaccount/my-project, minor updates are planned:
terraform import bitbucket_repository.project_repo myaccount/my-project
~ bitbucket_repository.project_repo has_issues: "true" => "false" has_wiki: "true" => "false" language: "php" => "" project_key: "PROJ" => "api"
Running apply produced:
Error: Error applying plan: 1 error(s) occurred: * bitbucket_repository.project_repo: 1 error(s) occurred: * bitbucket_repository.project_repo: API Error: 400 2.0/repositories/hamweather/aeris-api Bad request
Please list the steps required to reproduce the issue, for example:
terraform apply
This seems pretty reproducible. I didn't include the debug log (cause I'm lazy), but if that's actually necessary and it's hard to reproduce I can. Thanks all.
Hey all,
I seem to be getting 400 status codes when accessing an existing repository that was imported to this state.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Expected Behavior
Resource was imported via
terraform import bitbucket_repository.project_repo myaccount/my-project
, minor updates are planned:Actual Behavior
Running apply produced:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import bitbucket_repository.project_repo myaccount/my-project
terraform apply
This seems pretty reproducible. I didn't include the debug log (cause I'm lazy), but if that's actually necessary and it's hard to reproduce I can. Thanks all.