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

output is not consistent between data and resource in ibm_resource_instance #5542

Open
andreainnocenti opened this issue Aug 1, 2024 · 0 comments
Labels
service/Resource Management Issues related to Resource Manager or Resource controller Issues

Comments

@andreainnocenti
Copy link

andreainnocenti commented Aug 1, 2024

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_resource_instance

Terraform Configuration Files

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

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.

Debug Output

Panic Output

Expected Behavior

I would expect to access the same outputs since RC API always returns them instead, as you can see from the state file, I cannot access attributes like resource_plan_id, account_id and dashboard_url that are present in https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_instance#attribute-reference

"resources": [
    {
      "mode": "data",
      "type": "ibm_resource_instance",
      "name": "existing_machine_learning_instance",
      "provider": "provider[\"registry.terraform.io/ibm-cloud/ibm\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "crn": "crn:v1:bluemix:public:pm-20:eu-gb:a/0e550c0a99db49b1813ffb36fadec76b:7bf9d14b-fb35-4ea6-9270-9d57f930e4f5::",
            "extensions": {},
            "guid": "7bf9d14b-fb35-4ea6-9270-9d57f930e4f5",
            "id": "crn:v1:bluemix:public:pm-20:eu-gb:a/0e550c0a99db49b1813ffb36fadec76b:7bf9d14b-fb35-4ea6-9270-9d57f930e4f5::",
            "identifier": "crn:v1:bluemix:public:pm-20:eu-gb:a/0e550c0a99db49b1813ffb36fadec76b:7bf9d14b-fb35-4ea6-9270-9d57f930e4f5::",
            "location": "eu-gb",
            "name": "Watson Machine Learning-n9",
            "parameters_json": null,
            "plan": "lite",
            "resource_controller_url": "https://cloud.ibm.com/services/",
            "resource_crn": "crn:v1:bluemix:public:pm-20:eu-gb:a/0e550c0a99db49b1813ffb36fadec76b:7bf9d14b-fb35-4ea6-9270-9d57f930e4f5::",
            "resource_group_id": "97b0a36ae5ed431688e6f5295048fd46",
            "resource_group_name": "Default",
            "resource_name": "Watson Machine Learning-n9",
            "resource_status": "active",
            "service": "pm-20",
            "status": "active",
            "tags": []
          },
          "sensitive_attributes": []
        }
      ]
    }
  ],

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Resource Management Issues related to Resource Manager or Resource controller Issues
Projects
None yet
Development

No branches or pull requests

1 participant