-
Notifications
You must be signed in to change notification settings - Fork 24
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
TERRA-72 ⁃ Importing existing role with no changes is showing it needs to be replaced to to a different name #152
Comments
@bigjew92 I'm not able to reproduce this. I have some existing roles in my organization and I was able to do a I'm assuming you are using the latest v2.1.2 of the provider. If not, can you let me know which version? The reason I ask about the token you are using is because of the issue described in #101. That issue is still open as the DevOps API still doesn't allow you to list a specific role without elevated permissions (even though you can use a role without them to create a role and list all roles). |
@emerkle826 Thanks for checking. I'm not sure why this was happening multiple times, but trying this morning with v2.1.2, it works with no changes to my code or token I am using. I believe my token is for |
Thanks for replying back. This might have been an issue prior to v2.1.1 as I fixed a few things around roles in that version. |
I believe last I checked was possibly v2.1.0-rc9, so definitely possible! |
Hi there,
Please provide the following details with your issue report.
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Output From Postman
Expected Behavior
After getting the structure from Postman, I have recreated the role within terraform. I would expect there to be no changes to the infrastructure. I understand that the role_name changing will force a replacement, however, I have confirmed that the role_name has not changed. The same role_name that is being output by a Postman call is being used within the resource creation.
Actual Behavior
After importing the resource, a subsequent plan is showing that the resource needs to be recreated because the name is changing. The name is not changing, it is a copy and paste from the Postman output.
terraform plan/import/plan
┆Issue is synchronized with this Jira Task by Unito
┆friendlyId: TERRA-72
┆priority: Major
The text was updated successfully, but these errors were encountered: