IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
341 stars 670 forks source link

Cannot deploy ibm_cd_toolchain_tool_bitbucketgit #5787

Open KKooli opened 1 week ago

KKooli commented 1 week ago

Community Note

Terraform CLI and Terraform IBM Provider Version

Terraform v1.5.7 on linux_amd64

Affected Resource(s)

ibm_cd_toolchain_tool_bitbucketgit https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/cd_toolchain_tool_bitbucketgit

Terraform Configuration Files

resource "ibm_cd_toolchain" "mgt-cd-toolchain-instance" {
  description       = "${local.basename} toolchain instance. Managed by the bootstrap"
  name              = format("%s-%s", local.basename, "toolchain")
  resource_group_id = data.ibm_resource_group.mgt-rg.id
  tags              = local.resource_tags
}

# Create a Bitbucket repository tool in the toolchain
resource "ibm_cd_toolchain_tool_bitbucketgit" "example_bitbucket_tool" {
  toolchain_id = ibm_cd_toolchain.mgt-cd-toolchain-instance.id
  name         = "ibm_dmzr_landingzone"
  parameters {
    enable_traceability      = true
    toolchain_issues_enabled = false
  }
  initialization {
    repo_name    = "ibm_dmzr_landingzone"
    type         = "new"
    private_repo = true
  }
}

Debug Output

image

Expected Behavior

Creates a new bitbucket on the toolchain instance

Actual Behavior

The instance gets created but the there is a problem with the repository creation

Steps to Reproduce

Terraform init Terraform apply

  1. terraform apply