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_iam_user_policy data source produces no results #2312

Closed
dprosper opened this issue Mar 4, 2021 · 2 comments
Closed

ibm_iam_user_policy data source produces no results #2312

dprosper opened this issue Mar 4, 2021 · 2 comments
Labels

Comments

@dprosper
Copy link
Contributor

dprosper commented Mar 4, 2021

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

$ terraform -v
Terraform v0.14.7

  • provider registry.terraform.io/ibm-cloud/ibm v1.21.1

Affected Resource(s)

  • ibm_iam_user_policy

Terraform Configuration Files

data "ibm_iam_user_policy" "user_policy" {
  ibm_id = var.ibm_id
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

Policies array should have contained policies as described here: https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/iam_user_policy#attribute-reference instead it was empty

Actual Behavior

What actually happened?

 "resources": [
    {
      "mode": "data",
      "type": "ibm_iam_user_policy",
      "name": "user_policy",
      "provider": "provider[\"registry.terraform.io/ibm-cloud/ibm\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "ibm_id": "<redacted>",
            "id": "<redacted>",
            "policies": [],
            "sort": null
          },
          "sensitive_attributes": []
        }
      ]
    }
]

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

N/A

References

N/A

@dprosper dprosper added the bug label Mar 4, 2021
@dprosper
Copy link
Contributor Author

@kavya498 I used my e-mail address. Note that I am not creating a new resource in my template, I am only trying to retrieve existing resources.

@kavya498
Copy link
Collaborator

Fixed in latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants