-
Notifications
You must be signed in to change notification settings - Fork 11
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
PR #147: Machine User Role and Resource Role Assignment Fails #147
PR #147: Machine User Role and Resource Role Assignment Fails #147
Conversation
794042c
to
8b58aa1
Compare
8b58aa1
to
f6c971d
Compare
thank you for your contribution! |
…nment and cdp_iam_machine_user_resource_role_assignment
…nment and cdp_iam_machine_user_resource_role_assignment
3ceba39
to
cd080e3
Compare
…nment and cdp_iam_machine_user_resource_role_assignment
cd080e3
to
e7a7873
Compare
…rences to role crns
…rences to role crns
973dcc1
to
002dbeb
Compare
@gregito I implemented an acceptance test for each of the resources. If I have seen it correctly, the GitHub quality gates do not execute acceptance tests. I was able to run them locally. I think the reason why the last quality gate fails is, that I do not have permissions to push the test coverage to your server. |
thank you @ueisele! could you please squash the three commits of yours into one? after that, you can rebase and merge it 🙂 |
002dbeb
to
4690c04
Compare
@gregito I squashed it. Could you please merge it? I think I have no permissions to merge. Thanks :) |
We want to assign a
role
to amachine user
via the Terraform resourcecdp_iam_machine_user_role_assignment
:When applying the changes, Terraform fails with a nil pointer dereference error:
The reason for this is, that for this resource, the CDP client has not been initialized. Basically the following code was missing:
After fixing this, applying the change still failed:
It showed that the reason is, that the
cdp_iam_machine_user_role_assignment
does not assign an id to the response.After assigning an id with the following code it worked:
The resource
cdp_iam_machine_user_resource_role_assignment
has the exact same problem, so I fixed both with this PR.Terraform version: v1.9.3
CDP Provider version: v0.6.2