Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibm_cm_catalog doens't allow to specify destination resource group id #4216

Closed
vbontempi opened this issue Dec 2, 2022 · 3 comments · Fixed by #4415
Closed

ibm_cm_catalog doens't allow to specify destination resource group id #4216

vbontempi opened this issue Dec 2, 2022 · 3 comments · Fixed by #4415
Labels
service/Catalog Management Issues related to Catalog Management

Comments

@vbontempi
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

  • ibm_cm_catalog

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_cm_catalog" "service_vpe_catalog" {
  label             = "test catalog"
  short_description = "catalog"
  resource_group_id = "<<< resource group id >>>"
  catalog_icon_url = "icon url"
  kind = "offering"
  tags = ["catalog", "tags"]
}

provider "ibm" {
  ibmcloud_api_key = var.ibmcloud_api_key
  region           = "eu-gb"
}

variable "ibmcloud_api_key" {
  description = "APIkey that's associated with the account to use, set via environment variable TF_VAR_ibmcloud_api_key"
  type        = string
  sensitive   = true
}
terraform {
  required_version = ">= 1.0.0"
  required_providers {
    ibm = {
      source  = "ibm-cloud/ibm"
      version = "= 1.48.0"
    }
  }
}

Debug Output

Panic Output

Expected Behavior

Create the catalog instance in the resource_group_id RG

Actual Behavior

Fails with the following error:

Can't configure a value for "resource_group_id": its value will be decided automatically based on the result of applying this configuration.

Steps to Reproduce

  1. terraform plan or terraform apply

Important Factoids

References

doc link showing the field as optional
https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/cm_catalog#argument-reference

@github-actions github-actions bot added the service/Catalog Management Issues related to Catalog Management label Dec 2, 2022
@vbontempi
Copy link
Contributor Author

By looking at the source code

it seems that the field is missing of Optional: true field. It has been removed also from other fields that are expected to be optional

@ocofaigh
Copy link
Contributor

ocofaigh commented Dec 7, 2022

@benbuchanan Has this been addressed in #4208 ? You may want to link the issue with the PR

@ocofaigh
Copy link
Contributor

ocofaigh commented Dec 7, 2022

The fix has been extracted into its own PR -> #4224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Catalog Management Issues related to Catalog Management
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants