Skip to content

ibm_iam_trusted_profile_identity seems to have duplicate arguments #6158

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

Open
ocofaigh opened this issue Apr 16, 2025 · 1 comment
Open

ibm_iam_trusted_profile_identity seems to have duplicate arguments #6158

ocofaigh opened this issue Apr 16, 2025 · 1 comment
Labels
service/IAM Issues related to IAM

Comments

@ocofaigh
Copy link
Contributor

Looking at the docs for ibm_iam_trusted_profile_identity there seems to be 2 args that are the same. Is this a bug?

  • type - (Required, Forces new resource, String) Type of the identity.
    • Constraints: Allowable values are: user, serviceid, crn.
  • identity_type - (Required, Forces new resource, String) Type of the identity.
    • Constraints: Allowable values are: user, serviceid, crn.

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_iam_trusted_profile_identity

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

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added the service/IAM Issues related to IAM label Apr 16, 2025
@ocofaigh
Copy link
Contributor Author

IAM team responded internally to say they are both required as per the documentation: https://cloud.ibm.com/apidocs/iam-identity-token-api#set-profile-identity. The difference between them is that identity_type is a path parameter and type is a body parameter. They can't be different values, they need to be same.

With this in mind, I think the provider should be updated to just ask for a single arg, and then pass both args to the api call in the code. @Somchavan This will be a much better user experience for consumers of the provider. Can it be implemented?

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

No branches or pull requests

1 participant