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_trusted_profile_link, argument "namespace" is not required if cr_type is VSI #3219

Closed
sasikeda opened this issue Oct 18, 2021 · 2 comments

Comments

@sasikeda
Copy link

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_link

Expected Behavior

Documentation states;

namespace - (Required, String) The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.

If cr_type = VSI, then namespace argument is not required in the link.

Actual Behavior

My snippet;

resource "ibm_iam_trusted_profile_link" "itself" {
   profile_id = var.trusted_profile_id
   cr_type    = "VSI"
   link {
     crn = var.target_vsi_crn
   }
   name = var.trusted_profile_link_name
 }

Error;

Error: Missing required argument
│
│   on resources/ibmcloud/security/iam/trusted_profile_link/trusted_profile_link.tf line 20, in resource "ibm_iam_trusted_profile_link" "itself":
│   20:   link {
│
│ The argument "namespace" is required, but no definition was found.
@hkantare
Copy link
Collaborator

@pooraniss-ibm Can you please look into this issue..We should mark namespace as optional argument

@pooraniss-ibm
Copy link
Contributor

yes thats correct: namespace should only be marked as optional. here is the PR

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

No branches or pull requests

4 participants